@ -3,6 +3,9 @@ notes.mergeStrategy::
conflicts. Must be one of `manual`, `ours`, `theirs`, `union`, or
conflicts. Must be one of `manual`, `ours`, `theirs`, `union`, or
`cat_sort_uniq`. Defaults to `manual`. See "NOTES MERGE STRATEGIES"
`cat_sort_uniq`. Defaults to `manual`. See "NOTES MERGE STRATEGIES"
section of linkgit:git-notes[1] for more information on each strategy.
section of linkgit:git-notes[1] for more information on each strategy.
+
This setting can be overridden by passing the `--strategy` option to
linkgit:git-notes[1].
notes.<name>.mergeStrategy::
notes.<name>.mergeStrategy::
Which merge strategy to choose when doing a notes merge into
Which merge strategy to choose when doing a notes merge into
@ -11,28 +14,35 @@ notes.<name>.mergeStrategy::
linkgit:git-notes[1] for more information on the available strategies.
linkgit:git-notes[1] for more information on the available strategies.
notes.displayRef::
notes.displayRef::
The (fully qualified) refname from which to show notes when
Which ref (or refs, if a glob or specified more than once), in
showing commit messages. The value of this variable can be set
addition to the default set by `core.notesRef` or
to a glob, in which case notes from all matching refs will be
`GIT_NOTES_REF`, to read notes from when showing commit
shown. You may also specify this configuration variable
messages with the 'git log' family of commands.
several times. A warning will be issued for refs that do not
exist, but a glob that does not match any refs is silently
ignored.
+
+
This setting can be overridden with the `GIT_NOTES_DISPLAY_REF`
This setting can be overridden with the `GIT_NOTES_DISPLAY_REF`
environment variable, which must be a colon separated list of refs or
environment variable, which must be a colon separated list of refs or
globs.
globs.
+
+
A warning will be issued for refs that do not exist,
but a glob that does not match any refs is silently ignored.
+
This setting can be disabled by the `--no-notes` option to the 'git
log' family of commands, or by the `--notes=<ref>` option accepted by
those commands.
+
The effective value of "core.notesRef" (possibly overridden by
The effective value of "core.notesRef" (possibly overridden by
GIT_NOTES_REF) is also implicitly added to the list of refs to be
GIT_NOTES_REF) is also implicitly added to the list of refs to be
displayed.
displayed.
notes.rewrite.<command>::
notes.rewrite.<command>::
When rewriting commits with <command> (currently `amend` or
When rewriting commits with <command> (currently `amend` or
`rebase`) and this variable is set to `true`, Git
`rebase`), if this variable is `false`, git will not copy
automatically copies your notes from the original to the
notes from the original to the rewritten commit. Defaults to
rewritten commit. Defaults to `true`, but see
`true`. See also "`notes.rewriteRef`" below.
"notes.rewriteRef" below.
+
This setting can be overridden with the `GIT_NOTES_REWRITE_REF`
environment variable, which must be a colon separated list of refs or
globs.
notes.rewriteMode::
notes.rewriteMode::
When copying notes during a rewrite (see the
When copying notes during a rewrite (see the
@ -46,14 +56,13 @@ environment variable.
notes.rewriteRef::
notes.rewriteRef::
When copying notes during a rewrite, specifies the (fully
When copying notes during a rewrite, specifies the (fully
qualified) ref whose notes should be copied. The ref may be a
qualified) ref whose notes should be copied. May be a glob,
glob, in which case notes in all matching refs will be copied.
in which case notes in all matching refs will be copied. You
You may also specify this configuration several times.
may also specify this configuration several times.
+
+
Does not have a default value; you must configure this variable to
Does not have a default value; you must configure this variable to
enable note rewriting. Set it to `refs/notes/commits` to enable
enable note rewriting. Set it to `refs/notes/commits` to enable
rewriting for the default commit notes.
rewriting for the default commit notes.
+
+
This setting can be overridden with the `GIT_NOTES_REWRITE_REF`
Can be overridden with the `GIT_NOTES_REWRITE_REF` environment variable.
environment variable, which must be a colon separated list of refs or
See `notes.rewrite.<command>` above for a further description of its format.
globs.