Re: commit gone after merge - how to debug?
- From
- Igor Lautar <igor.lautar@gmail.com>
- Date
- Nov 26, 2012, 13:58 UTC
- Message-ID
- <CAO1Khk8=nrKknfqY-k6XaGPDbLrHyrK-8fxfB7XXUWeB7L4EUA@mail.gmail.com>
- In-Reply-To
- <vpqehjgscv3.fsf@grenoble-inp.fr>
On Mon, Nov 26, 2012 at 2:38 PM, Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> wrote:
Show 8 quoted lines
> Igor Lautar <igor.lautar@gmail.com> writes: >> Somewhat, but it does not explain why the file no longer has that >> change. > > It still has, but it's not shown by "git log <file>", probably because > one of the parent of the merge commit introduces no change for this > file, so one side of the merge is not needed to explain you how you went > from the origin of time to the last commit.
No, the change is not there. See below.
Show 7 quoted lines
> Try this: > > commit=<sha1 of your merge commit> > # Show diff with first parent: > git diff "$commit" "$commit"^1 > # Show diff with second parent: > git diff "$commit" "$commit"^2
Yes, change is shown in commit^2, but actual file after merge does not have it.
I've double and triple checked, it is just not there. In the end, I've cherry-picked the same commit after the merge and change is applied. If change would be there after the merge, cherry-pick would not have anything to do (whole commit is a one line change in single file).
So its not that the history is hidden, the change *is* missing after the merge.
Is there anything else I can try to figure out why its missing (other than actually debugging git code/scripts)? Like debug output for each change being considered/merged in?
Regards, Igor