aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-02-27 14:47:45 -0800
committerJunio C Hamano <junkio@cox.net>2006-02-27 14:47:45 -0800
commit2ae1c53b51ff78b13cc8abf8e9798a12140b7638 (patch)
treed9be860f24495d94c72cc3c127693244472cb3d7 /cache.h
parentfc96b7c9ba5034a408d508c663a96a15b8f8729c (diff)
downloadgit-2ae1c53b51ff78b13cc8abf8e9798a12140b7638.tar.gz
git-2ae1c53b51ff78b13cc8abf8e9798a12140b7638.tar.xz
apply --whitespace: configuration option.
The new configuration option apply.whitespace can take one of "warn", "error", "error-all", or "strip". When git-apply is run to apply the patch to the index, they are used as the default value if there is no command line --whitespace option. Andrew can now tell people who feed him git trees to update to this version and say: git repo-config apply.whitespace error Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 58eec00e0..0d3b244dd 100644
--- a/cache.h
+++ b/cache.h
@@ -161,11 +161,13 @@ extern int hold_index_file_for_update(struct cache_file *, const char *path);
extern int commit_index_file(struct cache_file *);
extern void rollback_index_file(struct cache_file *);
+/* Environment bits from configuration mechanism */
extern int trust_executable_bit;
extern int assume_unchanged;
extern int only_use_symrefs;
extern int diff_rename_limit_default;
extern int shared_repository;
+extern const char *apply_default_whitespace;
#define GIT_REPO_VERSION 0
extern int repository_format_version;