Re: Call Me Gitless

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Junio C Hamano <gitster@xxxxxxxxx> writes:

> What I did not bother in the patch is --no-index codepath, but with the
> recent refactoring of it to separate it out from the normal "index vs work
> tree" codepath, I would expect it to be trivial to use "1/" vs "2/" (or
> "old/" and "new/") prefixes for them.  I didn't actually look, though.

Ok, I looked.  It is indeed easy enough ;-)

---
 diff-no-index.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git i/diff-no-index.c w/diff-no-index.c
index 7d68b7f..126ff1c 100644
--- i/diff-no-index.c
+++ w/diff-no-index.c
@@ -252,6 +252,7 @@ void diff_no_index(struct rev_info *revs,
 	if (queue_diff(&revs->diffopt, revs->diffopt.paths[0],
 		       revs->diffopt.paths[1]))
 		exit(1);
+	diff_set_default_prefix(&revs->diffopt, "1/", "2/");
 	diffcore_std(&revs->diffopt);
 	diff_flush(&revs->diffopt);
 
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux