summaryrefslogtreecommitdiff
path: root/src/refs.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-11-17 23:26:49 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2013-12-09 15:55:11 +0100
commit6f13a30565fc3891c0df161945097b316945fca7 (patch)
tree81ef80d298be7a4b669ca9ff3176e616532783de /src/refs.h
parent13c9e44af9424e1fc478693f0d64fbf7082c9665 (diff)
downloadlibgit2-6f13a30565fc3891c0df161945097b316945fca7.tar.gz
reflog: write to the reflog following git's rules
git-core only writes to the reflogs of HEAD, refs/heads/ and, refs/notes/ or if there is already a reflog in place. Adjust our code to follow these semantics.
Diffstat (limited to 'src/refs.h')
-rw-r--r--src/refs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/refs.h b/src/refs.h
index 80c7703fc..4d5b6dacb 100644
--- a/src/refs.h
+++ b/src/refs.h
@@ -19,6 +19,7 @@
#define GIT_REFS_HEADS_DIR GIT_REFS_DIR "heads/"
#define GIT_REFS_TAGS_DIR GIT_REFS_DIR "tags/"
#define GIT_REFS_REMOTES_DIR GIT_REFS_DIR "remotes/"
+#define GIT_REFS_NOTES_DIR GIT_REFS_DIR "notes/"
#define GIT_REFS_DIR_MODE 0777
#define GIT_REFS_FILE_MODE 0666