Re: [PATCH 2/2] Teach name-rev to identify revisions containing a certain blob
Junio C Hamano <junkio@cox.net> writes:
Show 8 quoted lines
> [Footnote]
>
> *1* To find a revision that had a particular object at a known
> path, you should be able to do:
>
> git rev-list <starting refs> |
> git diff-tree --stdin --raw -r -Z |
> grep -z that-object-name
Sheesh, please add "-- <path>" after "-Z".
>
> but an earlier commit abd4e222 needs to be further enhanced to
> add -Z option that means "output fields are not NUL terminated,
> output records are", which did not happen.