From: Junio C Hamano Date: Tue, 19 Aug 2008 07:02:58 GMT Subject: Re: Call Me Gitless Message-ID: <7viqtxh4gt.fsf@gitster.siamese.dyndns.org> In-Reply-To: <7vmyj9h567.fsf@gitster.siamese.dyndns.org> Junio C Hamano 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);