diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2005-11-15 19:24:19 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-15 11:42:29 -0800 |
commit | f8348be3be8493a62110a09ab0343213990b416b (patch) | |
tree | efad0bc70473bdc02b8ac6a5e5f001519f1d5dfa /config.c | |
parent | Rework object refs tracking to reduce memory usage (diff) | |
download | tgif-f8348be3be8493a62110a09ab0343213990b416b.tar.xz |
Add config variable core.symrefsonly
This allows you to force git to avoid symlinks for refs. Just add
something like
[core]
symrefsonly = true
to .git/config.
DonĀ“t forget to "git checkout your_branch", or it does not do anything...
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -214,6 +214,11 @@ int git_default_config(const char *var, const char *value) return 0; } + if (!strcmp(var, "core.symrefsonly")) { + only_use_symrefs = git_config_bool(var, value); + return 0; + } + if (!strcmp(var, "user.name")) { strncpy(git_default_name, value, sizeof(git_default_name)); return 0; |