From: Junio C Hamano Date: Fri, 29 Dec 2006 00:32:05 +0000 (-0800) Subject: core.logallrefupdates: log remotes/ tracking branches. X-Git-Tag: v1.5.0-rc1~160 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e19b9ddab3fb7bd3bf6ed6629d3f014722e57a31;p=git.git core.logallrefupdates: log remotes/ tracking branches. Not using reflog for tags/ was very sensible; not giving reflog for the remotes/ was not. Signed-off-by: Junio C Hamano --- diff --git a/refs.c b/refs.c index 8b2a3c137..e88ed8b2d 100644 --- a/refs.c +++ b/refs.c @@ -925,7 +925,8 @@ static int log_ref_write(struct ref_lock *lock, const char *committer; if (log_all_ref_updates && - !strncmp(lock->ref_name, "refs/heads/", 11)) { + (!strncmp(lock->ref_name, "refs/heads/", 11) || + !strncmp(lock->ref_name, "refs/remotes/", 13))) { if (safe_create_leading_directories(lock->log_file) < 0) return error("unable to create directory for %s", lock->log_file);