Two things I totally forgot #1864
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
One thing is a fix for a patch in the
builtin-rebase
part: it had been pointed out that one of the patches introduced a0
where aNULL
would have been correct (I had missed this because it was not sent as a reply to the original mail thread).The other thing is more subtle, and even more worrisome: due to the way we start with a merging rebase, all patches that had been part of a previous branch thicket are assumed to be applied already. But this is not the case for branches we merged directly from https://github.com/gitster/git's branches: they would have to be re-applied. Previously, this was not a problem because merging rebases always rebased everything on top of the initial merge commit. But with the introduction of
git rebase --rebase-merges
, we switched to that mode, and that mode uses theno-rebase-cousins
mode by default. Meaning: branches we merged that are not based on Git for Windows'master
, but are based on commits reachable from core Git'smaster
, are lost during merging rebases.I noticed this yesterday, by pure luck, with the patch that teaches Git GUI about
core.hooksPath
. It was applied, but subsequently lost in a merging rebase.Happily, I could verify (by looking manually through the latest 10 merging rebases) that this was the only such case.
This PR addresses both oversights.