Re: [PATCH/RFC] diff --relative: output paths as relative to the current subdirectory
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Feb 12, 2008, 23:33 UTC
- Message-ID
- <alpine.LFD.1.00.0802121531170.2920@woody.linux-foundation.org>
- In-Reply-To
- <7vzlu524n9.fsf@gitster.siamese.dyndns.org>
On Tue, 12 Feb 2008, Junio C Hamano wrote:
Show 5 quoted lines
> > This adds --relative option to diff family. When you start from > a subdirectory, > > $ git diff --relative
Ack, except I think it should allow you to actually *set* what the diff is relative to.
An example of that could be something like
git diff --relative=drivers/scsi/ a..b -- drivers/scsi/
where you aren't actually *in* that subdirectory, but for one reason or another you're limiting the diff to just stuff in that subdirectory, and want a diff that is relative to that one.
Hmm?
Linus