]> git.ipfire.org Git - thirdparty/git.git/commit - cache.h
Make the tab width used for whitespace checks configurable
authorJohannes Sixt <j6t@kdbg.org>
Tue, 30 Nov 2010 08:29:11 +0000 (09:29 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Dec 2010 22:47:51 +0000 (14:47 -0800)
commitf4b05a4947f5f1cf3e01fb61ec5919cc28fe11f7
treebb5767eab63de6cf62368351aa289547cccd18f3
parentdee40e5178bab78aaf655ee4323f3141acd17654
Make the tab width used for whitespace checks configurable

A new whitespace "rule" is added that sets the tab width to use for
whitespace checks and fix-ups and replaces the hard-coded constant 8.

Since the setting is part of the rules, it can be set per file using
.gitattributes.

The new configuration is backwards compatible because older git versions
simply ignore unknown whitespace rules.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
Documentation/gitattributes.txt
cache.h
t/t4015-diff-whitespace.sh
t/t4019-diff-wserror.sh
t/t4124-apply-ws-rule.sh
ws.c