Dear all

My claim of bug was based on the (?natural) assumption that the header of an 
hunk

@@ N,M N',M' @@

should show the line N-1 (=N'-1) as title after the @@ ... @@.

IF, as René seems to imply (*), the default of git diff is the equivalent of 
diff -up (-p meaning "show which C function each change is in"), I understand 
the non-locality of the hunk headers in my examples, even more because they are 
not C files.

If this non-local behaviour is a feature, I propose that this bug is closed or 
(according to moderators' taste) maybe classed as a wish, the wish(es) being:

1) Please consider adopting the "no hunk header" option (diff -u) as a default 
for git diff, instead of the diff -up behavior.

2) (In any case) Please document the behavior of git diff for what concerns the 
choice of hunk headers.
 
Thanks for having taken the time of clarifying me.

Ric

(*)Apparently the man git diff section GENERATING PATCHES WITH -p does not 
mention which is the default behavior of git for what concerns hunk headers, so 
I cannot conferm this statement.



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to