Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Herland <johan@herland.net>2010-11-10 00:49:39 +0300
committerJunio C Hamano <gitster@pobox.com>2010-11-10 21:25:52 +0300
commit4a9cf1cefc0fd05e0eb46f862e398f1e4ac1c9a7 (patch)
tree40ed5e736dc62146c12984ebbda982e2e257f11c /notes.h
parent55d060771a15f4ce75e71b966d8117d8a32cc47b (diff)
notes.h: Make default_notes_ref() available in notes API
Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'notes.h')
-rw-r--r--notes.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/notes.h b/notes.h
index c0288b0d32..20db42fe95 100644
--- a/notes.h
+++ b/notes.h
@@ -44,6 +44,20 @@ extern struct notes_tree {
} default_notes_tree;
/*
+ * Return the default notes ref.
+ *
+ * The default notes ref is the notes ref that is used when notes_ref == NULL
+ * is passed to init_notes().
+ *
+ * This the first of the following to be defined:
+ * 1. The '--ref' option to 'git notes', if given
+ * 2. The $GIT_NOTES_REF environment variable, if set
+ * 3. The value of the core.notesRef config variable, if set
+ * 4. GIT_NOTES_DEFAULT_REF (i.e. "refs/notes/commits")
+ */
+const char *default_notes_ref(void);
+
+/*
* Flags controlling behaviour of notes tree initialization
*
* Default behaviour is to initialize the notes tree from the tree object