diff options
author | Martin Langhoff <martin@catalyst.net.nz> | 2006-05-08 10:03:37 +1200 |
---|---|---|
committer | Martin Langhoff <martin@catalyst.net.nz> | 2006-05-08 10:03:37 +1200 |
commit | 50c08d48722149d95f46bcc80a5211ea04b8a809 (patch) | |
tree | 15c465be37ba4fdd8824edb95085b81076b73af9 /config.c | |
parent | cvsserver: use git-rev-list instead of git-log (diff) | |
parent | Fix users of prefix_path() to free() only when necessary (diff) | |
download | tgif-50c08d48722149d95f46bcc80a5211ea04b8a809.tar.xz |
Merge with git://kernel.org/pub/scm/git/git.git
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -227,8 +227,8 @@ 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); + if (!strcmp(var, "core.prefersymlinkrefs")) { + prefer_symlink_refs = git_config_bool(var, value); return 0; } @@ -335,8 +335,11 @@ static int store_aux(const char* key, const char* value) store.offset[store.seen] = ftell(config_file); store.state = KEY_SEEN; store.seen++; - } else if(!strncmp(key, store.key, store.baselen)) - store.state = SECTION_SEEN; + } else if (strrchr(key, '.') - key == store.baselen && + !strncmp(key, store.key, store.baselen)) { + store.state = SECTION_SEEN; + store.offset[store.seen] = ftell(config_file); + } } return 0; } |