refs.c: Write reflogs for notes just like for branch heads
commitb2e256b0f0980dac6f0761d5bff0b43170022799
authorMichael J Gruber <git@drmicha.warpmail.net>
Mon, 29 Mar 2010 13:05:58 +0000 (29 15:05 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Mar 2010 04:18:07 +0000 (29 21:18 -0700)
treed2dbba693321df99aff22f4ba94997836763883b
parent4d80fa8f7562766013e0c589f270f74c25448755
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>
refs.c
t/t3301-notes.sh