[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4E56CE8F.8080501@panasas.com>
Date: Thu, 25 Aug 2011 15:37:03 -0700
From: Boaz Harrosh <bharrosh@...asas.com>
To: Linus Torvalds <torvalds@...ux-foundation.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Git Mailing List <git@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: [PATCH] .gitattributes: Enable cpp diff parsing for .[ch] files
The Linux Kernel source tree is certainly a C language repository.
As a maintainer and code reviewer I would like too, for example:
See function names as hunk headers and not goto labels. And all
the other goodies a language specific diff parser gives me.
Add a .gitattributes file to the Linux tree to enable cpp parsing
of the source files.
People are welcome to add other parsers for other type of files
if needed. (Like Makefile or Kconfig ...)
CC: Jeff King <peff@...f.net>
CC: Junio C Hamano <gitster@...ox.com>
Signed-off-by: Boaz Harrosh <bharrosh@...asas.com>
---
.gitattributes | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
create mode 100644 .gitattributes
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..6d2b620
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,2 @@
+*.h diff=cpp
+*.c diff=cpp
--
1.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists