It annoys me.
How to find remote code?
I ended up finding where it was created:
$ git log --pretty=oneline -S'some code'
And that's good enough, but I was also curious to find where it was removed, and there are still no dice.
First, I tried git diff HEAD..HEAD^|grep 'some code' , expanding the range every time until I found the lines in which it was deleted. It's nice, so suppose I found it on the range HEAD^^..HEAD^^^ , then git show HEAD^^^ and git show HEAD^^ with grep , but the code was not found anywhere!
Then I read a little bit of git bisect , and of course it gives me one revision that the culprit should be ... Again, git show rev|grep 'some code' appears empty ...
What? What am I doing wrong?
Thank!
git
Ivan 06 Oct '09 at 22:53 2009-10-06 22:53
source share