author | Michael J Gruber <git@drmicha.warpmail.net> | |
Mon, 29 Mar 2010 13:05:58 +0000 (15:05 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 30 Mar 2010 04:18:07 +0000 (21:18 -0700) | ||
commit | b2e256b0f0980dac6f0761d5bff0b43170022799 | |
tree | d2dbba693321df99aff22f4ba94997836763883b | tree | snapshot |
parent | 4d80fa8f7562766013e0c589f270f74c25448755 | commit | diff |
refs.c: Write reflogs for notes just like for branch heads
The notes code intends to write reflog entries, but currently they are
not written because log_ref_write() checks for the refname path
explicitly.
Add refs/notes to the list of allowed paths so that notes references are
treated just like branch heads, i.e. according to core.logAllRefUpdates
and core.bare.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Acked-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The notes code intends to write reflog entries, but currently they are
not written because log_ref_write() checks for the refname path
explicitly.
Add refs/notes to the list of allowed paths so that notes references are
treated just like branch heads, i.e. according to core.logAllRefUpdates
and core.bare.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Acked-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c | diff | blob | history | |
t/t3301-notes.sh | diff | blob | history |