-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config.txt: move notes.* to a separate file
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
- Loading branch information
Showing
2 changed files
with
60 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
notes.mergeStrategy:: | ||
Which merge strategy to choose by default when resolving notes | ||
conflicts. Must be one of `manual`, `ours`, `theirs`, `union`, or | ||
`cat_sort_uniq`. Defaults to `manual`. See "NOTES MERGE STRATEGIES" | ||
section of linkgit:git-notes[1] for more information on each strategy. | ||
|
||
notes.<name>.mergeStrategy:: | ||
Which merge strategy to choose when doing a notes merge into | ||
refs/notes/<name>. This overrides the more general | ||
"notes.mergeStrategy". See the "NOTES MERGE STRATEGIES" section in | ||
linkgit:git-notes[1] for more information on the available strategies. | ||
|
||
notes.displayRef:: | ||
The (fully qualified) refname from which to show notes when | ||
showing commit messages. The value of this variable can be set | ||
to a glob, in which case notes from all matching refs will be | ||
shown. You may also specify this configuration variable | ||
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` | ||
environment variable, which must be a colon separated list of refs or | ||
globs. | ||
+ | ||
The effective value of "core.notesRef" (possibly overridden by | ||
GIT_NOTES_REF) is also implicitly added to the list of refs to be | ||
displayed. | ||
|
||
notes.rewrite.<command>:: | ||
When rewriting commits with <command> (currently `amend` or | ||
`rebase`) and this variable is set to `true`, Git | ||
automatically copies your notes from the original to the | ||
rewritten commit. Defaults to `true`, but see | ||
"notes.rewriteRef" below. | ||
|
||
notes.rewriteMode:: | ||
When copying notes during a rewrite (see the | ||
"notes.rewrite.<command>" option), determines what to do if | ||
the target commit already has a note. Must be one of | ||
`overwrite`, `concatenate`, `cat_sort_uniq`, or `ignore`. | ||
Defaults to `concatenate`. | ||
+ | ||
This setting can be overridden with the `GIT_NOTES_REWRITE_MODE` | ||
environment variable. | ||
|
||
notes.rewriteRef:: | ||
When copying notes during a rewrite, specifies the (fully | ||
qualified) ref whose notes should be copied. The ref may be a | ||
glob, in which case notes in all matching refs will be copied. | ||
You may also specify this configuration several times. | ||
+ | ||
Does not have a default value; you must configure this variable to | ||
enable note rewriting. Set it to `refs/notes/commits` to enable | ||
rewriting for the default commit notes. | ||
+ | ||
This setting can be overridden with the `GIT_NOTES_REWRITE_REF` | ||
environment variable, which must be a colon separated list of refs or | ||
globs. |