From: Dana How Date: Tue, 18 Dec 2007 21:03:04 GMT Subject: Re: [PATCH] Simple support for tree entry specification with relative pathnames Message-ID: <56b7f5510712181303h1e7ae35dpa0adfd6804a7cecd@mail.gmail.com> In-Reply-To: <20071218204752.GD2875@steel.home> ACK from me... I submitted a similar patch last May 4 which also changed sha1_name.c to do this. The patch added a config variable to control this (probably not desirable). The patch also handled leading/embedded . and .. . In p4 you can say p4 file#rev and file is interpreted relatively. I wanted to be able to say git tree:file and have file interpreted relatively. This should only happen when you are inside the work tree. Good luck! Dana On Dec 18, 2007 12:47 PM, Alex Riesen wrote: > This allows git show to understand something like this: > > $ test -f DIR/file && cd DIR && git show rev:file > > Signed-off-by: Alex Riesen > --- > > This is a bit too simplistic and can be fooled easily: > > .../t$ git show HEAD:../t/test-lib.sh > > wont work. It is short, though. -- Dana L. How danahow@gmail.com +1 650 804 5991 cell