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

Re: git diff annoyance / feature request

From: René Scharfe <hidden>
Date: 2016-06-15 22:51:55

Am 25.08.2011 21:14, schrieb Boaz Harrosh:
quoted hunk ↗ jump to hunk
git diff has this very annoying miss-fixture where it will state
as hunk header the closest label instead of the function name.

So I get:
@@ -675,9 +670,23 @@ try_again:
 	}
 
 	if (flag) {
-		foo();
+		bazz();
 	}
 
 
Instead of what I'd like:
@@ -563,12 +563,7 @@ static int write_exec(struct page_collect *pcol)
 	}
 
 	if (flag) {
-		foo();
+		bazz();
 	}
Cheap trick: change your coding style to place a single space before
labels instead of having them start right at the beginning of a line.

René
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help