Re: commit gone after merge - how to debug?
- From
- Igor Lautar <igor.lautar@gmail.com>
- Date
- Nov 26, 2012, 14:15 UTC
- Message-ID
- <CAO1Khk9Y_SC8q4iHnv848Z+dXMaeUOWxzW76yPSj_as317_u5g@mail.gmail.com>
- In-Reply-To
- <vpqhaocqx4k.fsf@grenoble-inp.fr>
On Mon, Nov 26, 2012 at 3:03 PM, Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> wrote:
> Your initial message was about the output of "git log". Do you mean that > the file, on the filesystem, does not have the line introduced by the > commit?
Yes, sorry if I was not clear enough.
> If so, check the content registered in the repository too: > > git show <merge-commit>:<file-name>
Content shown is identical to the one in working copy, ie., it is missing one line change.
git annotate <file> <merge commit> - shows that particular line as if it has originated from when the file was originally added to repo. git annotate <file> <merge commit>^2 - shows line as being modified by a commit done after file was added - ie., state I would expect after a merge