Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [PATCH/RFC] diff --relative: output paths as relative to the current subdirectory

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-06-15 22:44:13


On Tue, 12 Feb 2008, Junio C Hamano wrote:
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help