Re: [PATCH 2/2] Teach name-rev to identify revisions containing a certain blob
- From
Junio C Hamano <junkio@cox.net>
- Date
- Feb 17, 2007, 18:24 UTC
- Message-ID
- <7vr6sotzft.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.63.0702171838510.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 9 quoted lines
> If you want to know which revisions contained a certain version > of a file, just say > > git name-rev --file <filename> > > which will read the file, and give you a list of revisions > containing a file with the same contents. If <filename> is "-", > it will read the contents from stdin. Of course, this is a really > expensive operation.
I expected this to take arbitrary object name and let the caller to do 'hash-object', so that you could also find a certain tree, not just blob.