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

Re: git diff - no newline after @@ ?

From: Petr Sebor <hidden>
Date: 2016-06-15 22:42:37

Alex Riesen wrote:
On 8/18/06, Petr Sebor [off-list ref] wrote:
quoted
Hello,

has anyone noticed that the 'git diff' output somehow lacks the newline
after the @@ tag?
Why should it? It's hunk comment.
Hunk comment? Maybe we don't understand each other...

check another example:
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -13,6 +13,7 @@ #include <linux/stddef.h>
 #include <linux/types.h>
 #include <linux/compiler.h>
 #include <linux/bitops.h>
+#include <linux/memleak.h>
 #include <asm/byteorder.h>
 #include <asm/bug.h>
whereas gnu diff would output
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -13,6 +13,7 @@
 #include <linux/stddef.h>
 #include <linux/types.h>
 #include <linux/compiler.h>
 #include <linux/bitops.h>
+#include <linux/memleak.h>
 #include <asm/byteorder.h>
 #include <asm/bug.h>
Petr
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help