From: Junio C Hamano Date: Sat, 17 Feb 2007 18:24:22 GMT Subject: Re: [PATCH 2/2] Teach name-rev to identify revisions containing a certain blob Message-ID: <7vr6sotzft.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Johannes Schindelin writes: > If you want to know which revisions contained a certain version > of a file, just say > > git name-rev --file > > which will read the file, and give you a list of revisions > containing a file with the same contents. If 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.