My colleague did a change a while back - introduced a new function - and that was (successfully) committed to Git. Now, though, that function has gone missing.
Using git log --reverse
I've managed to find the last commit where that function was still in the code (48d60a03). The next (e6f28bfd) commit (where the function in question disappeared) is a merge (of 14158e1), but git show
'ing any of these does not reveal a delete of the missing code.
In other words, code has disappeared during a merge, without being deleted in either of the branches being merged.
Searching Stack Overflow for a couple of hours leads me to conclude that it must be a manual error during a conflict resolution (did I get that right?). So be it, that happens. The question is - how do I get that code back? Is there another way than making a new commit with the missing code?
Related question; can I somehow find out, if there are other instances of stuff going bye-bye like this? I'm slightly worried ;)