diff options
author | Thomas Rast <trast@student.ethz.ch> | 2010-03-12 18:04:26 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-12 21:55:39 -0800 |
commit | 894a9d333e9e2015cad00d95250b7c5d3acea8b6 (patch) | |
tree | 2bab79483f959c7661e87ef70b1976ab9aa65bdb /cache.h | |
parent | 6ceeaee7ea5bb754c76ce93c5b289f72d69fdb92 (diff) | |
download | git-894a9d333e9e2015cad00d95250b7c5d3acea8b6.tar.gz |
Support showing notes from more than one notes tree
With this patch, you can set notes.displayRef to a glob that points at
your favourite notes refs, e.g.,
[notes]
displayRef = refs/notes/*
Then git-log and friends will show notes from all trees.
Thanks to Junio C Hamano for lots of feedback, which greatly
influenced the design of the entire series and this commit in
particular.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Acked-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -385,6 +385,7 @@ static inline enum object_type object_type(unsigned int mode) #define ATTRIBUTE_MACRO_PREFIX "[attr]" #define GIT_NOTES_REF_ENVIRONMENT "GIT_NOTES_REF" #define GIT_NOTES_DEFAULT_REF "refs/notes/commits" +#define GIT_NOTES_DISPLAY_REF_ENVIRONMENT "GIT_NOTES_DISPLAY_REF" extern int is_bare_repository_cfg; extern int is_bare_repository(void); |