diff options
author | Junio C Hamano <junkio@cox.net> | 2006-10-08 01:35:18 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-10-08 01:35:18 -0700 |
commit | 4057deb5de110176ac19519177654108607b685c (patch) | |
tree | 38b6599725625599dcab79f6efbb355f2aa55481 /refs.c | |
parent | 26e5fc3415a294546b4009c7280fed4d367d4e62 (diff) | |
download | git-4057deb5de110176ac19519177654108607b685c.tar.gz |
core.logallrefupdates create new log file only for branch heads.
It used to mean "create log file for any ref that is updated",
but now it creates new log files only for branch heads.
The old behaviour made this configuration less useful than
otherwise it would be; automatically creating log file for tags
is almost always not useful.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'refs.c')
-rw-r--r-- | refs.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -721,7 +721,8 @@ static int log_ref_write(struct ref_lock *lock, char *logrec; const char *committer; - if (log_all_ref_updates) { + if (log_all_ref_updates && + !strncmp(lock->ref_name, "refs/heads/", 11)) { if (safe_create_leading_directories(lock->log_file) < 0) return error("unable to create directory for %s", lock->log_file); |