[PATCH] Add gitattributes file making whitespace checking pickier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: J. Bruce Fields <bfields@xxxxxxxxxxxxxx>

This will change the notion of "bad" whitespace for the git project to
include initial whitespace that uses spaces where tabs could have been
used.

This only changes which whitespace is considered "bad".  It doesn't
change the behavior when bad whitespace is found.  By default, commands
like git-apply, git-am, and git-rebase will print a warning but
otherwise do nothing.
---
 .gitattributes |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 .gitattributes

Is there any reason not to use this now that we have it?

diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..dd65501
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+* whitespace
-- 
1.5.4.rc2.60.gb2e62

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux