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

Re: [RFC/PATCH] align D/F handling of "diff --no-index" with that of normal Git

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:04:15

On Sun, Mar 22, 2015 at 5:37 AM, Ramsay Jones
[off-list ref] wrote:
On 22/03/15 05:11, Junio C Hamano wrote:
quoted
+             if (S_ISDIR(mode1)) {
+                     /* 2 is file that is created */
+                     d1 = noindex_filespec(NULL, 0);
+                     d2 = noindex_filespec(name2, mode2);
+                     name2 = NULL;
+                     mode2 = 0;
+             } else {
+                     /* 1 is file that is deleted */
+                     d1 = noindex_filespec(name1, mode2);
I have not been following the discussion (or even really
studied this patch), but the asymmetry here caught my eye
as I was skimming the email.
Yes, the assymetry is a stupid cut-and-paste error. Thanks for
catching.

There was actually no discussion on this point other than
a tangential mention of the problem to be solved, so you
are up to date as long as you read the proposed log message
in the message you are responding to ;-)

Another thing I noticed while I was playing with this is that
when comparing D1 and D2, a path that was modified is
shown as a patch between a/D1/path and b/D2/path, but
a path that was created or removed shows D1 or D2 on
both sides of the comparison, which we may also want to
fix. This problem appears in the current codebase without
the patch under discussion.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help