1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en">
5 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8" />
6 <meta name=
"generator" content=
"AsciiDoc 8.5.2" />
7 <title>git-notes(
1)
</title>
8 <style type=
"text/css">
10 p
, li
, dt
, dd
, div
, pre
, h1
, h2
, h3
, h4
, h5
, h6
{
12 border: 1px solid red;
17 margin: 1em 5% 1em 5%;
22 text-decoration: underline
;
42 h1
, h2
, h3
, h4
, h5
, h6
{
44 font-family: sans-serif
;
51 border-bottom: 2px solid silver
;
69 border: 1px solid silver
;
88 font-family: sans-serif
;
94 span#revnumber
, span#revdate
, span#revremark
{
95 font-family: sans-serif
;
99 font-family: sans-serif
;
101 border-top: 2px solid silver
;
107 padding-bottom: 0.5em;
111 padding-bottom: 0.5em;
116 margin-bottom: 1.5em;
118 div
.tableblock
, div
.imageblock
, div
.exampleblock
, div
.verseblock
,
119 div
.quoteblock
, div
.literalblock
, div
.listingblock
, div
.sidebarblock
,
120 div
.admonitionblock
{
122 margin-bottom: 1.5em;
124 div
.admonitionblock
{
126 margin-bottom: 2.0em;
131 div
.content
{ /* Block element content. */
135 /* Block element titles. */
136 div
.title
, caption
.title
{
138 font-family: sans-serif
;
142 margin-bottom: 0.5em;
148 td div
.title:first-child
{
151 div
.content div
.title:first-child
{
154 div
.content
+ div
.title
{
158 div
.sidebarblock
> div
.content
{
160 border: 1px solid silver
;
164 div
.listingblock
> div
.content
{
165 border: 1px solid silver
;
170 div
.quoteblock
, div
.verseblock
{
174 border-left: 5px solid
#dddddd;
178 div
.quoteblock
> div
.attribution
{
183 div
.verseblock
> div
.content
{
186 div
.verseblock
> div
.attribution
{
190 /* DEPRECATED: Pre version 8.2.7 verse style literal block. */
191 div
.verseblock
+ div
.attribution
{
195 div
.admonitionblock
.icon
{
199 text-decoration: underline
;
201 padding-right: 0.5em;
203 div
.admonitionblock td
.content
{
205 border-left: 3px solid
#dddddd;
208 div
.exampleblock
> div
.content
{
209 border-left: 3px solid
#dddddd;
213 div
.imageblock div
.content
{ padding-left: 0; }
214 span
.image img
{ border-style: none
; }
215 a
.image:visited
{ color: white
; }
219 margin-bottom: 0.8em;
232 list-style-position: outside
;
235 list-style-type: decimal
;
238 list-style-type: lower-alpha
;
241 list-style-type: upper-alpha
;
244 list-style-type: lower-roman
;
247 list-style-type: upper-roman
;
250 div
.compact ul
, div
.compact ol
,
251 div
.compact p
, div
.compact p
,
252 div
.compact div
, div
.compact div
{
254 margin-bottom: 0.1em;
257 div
.tableblock
> table
{
258 border: 3px solid
#527bbd;
260 thead
, p
.table
.header
{
261 font-family: sans-serif
;
273 /* Because the table frame attribute is overriden by CSS in most browsers. */
274 div
.tableblock
> table
[frame
="void"] {
277 div
.tableblock
> table
[frame
="hsides"] {
278 border-left-style: none
;
279 border-right-style: none
;
281 div
.tableblock
> table
[frame
="vsides"] {
282 border-top-style: none
;
283 border-bottom-style: none
;
289 margin-bottom: 0.8em;
292 padding-bottom: 15px;
294 dt
.hdlist1
.strong
, td
.hdlist1
.strong
{
300 padding-right: 0.8em;
306 div
.hdlist
.compact tr
{
315 .footnote, .footnoteref {
319 span
.footnote
, span
.footnoteref
{
320 vertical-align: super
;
324 margin: 20px 0 20px 0;
328 #footnotes div
.footnote
{
334 border-top: 1px solid silver
;
344 div#footer-badges
{ display: none
; }
348 margin-bottom: 2.5em;
353 font-family: sans-serif
;
357 margin-bottom: 0.1em;
360 div
.toclevel1
, div
.toclevel2
, div
.toclevel3
, div
.toclevel4
{
376 /* Overrides for manpage documents */
379 padding-bottom: 0.5em;
380 border-top: 2px solid silver
;
381 border-bottom: 2px solid silver
;
391 div#toc
{ display: none
; }
394 /* Workarounds for IE6's broken and incomplete CSS2. */
396 div
.sidebar-content
{
398 border: 1px solid silver
;
401 div
.sidebar-title
, div
.image-title
{
403 font-family: sans-serif
;
406 margin-bottom: 0.5em;
409 div
.listingblock div
.content
{
410 border: 1px solid silver
;
415 div
.quoteblock-attribution
{
420 div
.verseblock-content
{
423 div
.verseblock-attribution
{
428 div
.exampleblock-content
{
429 border-left: 3px solid
#dddddd;
433 /* IE6 sets dynamically generated links as visited. */
434 div#toc
a:visited
{ color: blue
; }
436 <script type=
"text/javascript">
438 window
.onload = function(){asciidoc
.footnotes();}
439 var asciidoc
= { // Namespace.
441 /////////////////////////////////////////////////////////////////////
442 // Table Of Contents generator
443 /////////////////////////////////////////////////////////////////////
445 /* Author: Mihai Bazon, September 2002
446 * http://students.infoiasi.ro/~mishoo
448 * Table Of Content generator
451 * Feel free to use this script under the terms of the GNU General Public
452 * License, as long as you do not remove or alter this notice.
455 /* modified by Troy D. Hanson, September 2006. License: GPL */
456 /* modified by Stuart Rackham, 2006, 2009. License: GPL */
459 toc: function (toclevels
) {
461 function getText(el
) {
463 for (var i
= el
.firstChild
; i
!= null; i
= i
.nextSibling
) {
464 if (i
.nodeType
== 3 /* Node.TEXT_NODE */) // IE doesn't speak constants.
466 else if (i
.firstChild
!= null)
472 function TocEntry(el
, text
, toclevel
) {
475 this.toclevel
= toclevel
;
478 function tocEntries(el
, toclevels
) {
479 var result
= new Array
;
480 var re
= new RegExp('[hH]([2-'+(toclevels
+1)+'])');
481 // Function that scans the DOM tree for header elements (the DOM2
482 // nodeIterator API would be a better technique but not supported by all
484 var iterate = function (el
) {
485 for (var i
= el
.firstChild
; i
!= null; i
= i
.nextSibling
) {
486 if (i
.nodeType
== 1 /* Node.ELEMENT_NODE */) {
487 var mo
= re
.exec(i
.tagName
);
488 if (mo
&& (i
.getAttribute("class") || i
.getAttribute("className")) != "float") {
489 result
[result
.length
] = new TocEntry(i
, getText(i
), mo
[1]-1);
499 var toc
= document
.getElementById("toc");
500 var entries
= tocEntries(document
.getElementById("content"), toclevels
);
501 for (var i
= 0; i
< entries
.length
; ++i
) {
502 var entry
= entries
[i
];
503 if (entry
.element
.id
== "")
504 entry
.element
.id
= "_toc_" + i
;
505 var a
= document
.createElement("a");
506 a
.href
= "#" + entry
.element
.id
;
507 a
.appendChild(document
.createTextNode(entry
.text
));
508 var div
= document
.createElement("div");
510 div
.className
= "toclevel" + entry
.toclevel
;
511 toc
.appendChild(div
);
513 if (entries
.length
== 0)
514 toc
.parentNode
.removeChild(toc
);
518 /////////////////////////////////////////////////////////////////////
519 // Footnotes generator
520 /////////////////////////////////////////////////////////////////////
522 /* Based on footnote generation code from:
523 * http://www.brandspankingnew.net/archive/2005/07/format_footnote.html
526 footnotes: function () {
527 var cont
= document
.getElementById("content");
528 var noteholder
= document
.getElementById("footnotes");
529 var spans
= cont
.getElementsByTagName("span");
532 for (i
=0; i
<spans
.length
; i
++) {
533 if (spans
[i
].className
== "footnote") {
535 // Use [\s\S] in place of . so multi-line matches work.
536 // Because JavaScript has no s (dotall) regex flag.
537 note
= spans
[i
].innerHTML
.match(/\s*\[([\s\S]*)]\s*/)[1];
538 noteholder
.innerHTML
+=
539 "<div class='footnote' id='_footnote_" + n
+ "'>" +
540 "<a href='#_footnoteref_" + n
+ "' title='Return to text'>" +
541 n
+ "</a>. " + note
+ "</div>";
543 "[<a id='_footnoteref_" + n
+ "' href='#_footnote_" + n
+
544 "' title='View footnote' class='footnote'>" + n
+ "</a>]";
545 var id
=spans
[i
].getAttribute("id");
546 if (id
!= null) refs
["#"+id
] = n
;
550 noteholder
.parentNode
.removeChild(noteholder
);
552 // Process footnoterefs.
553 for (i
=0; i
<spans
.length
; i
++) {
554 if (spans
[i
].className
== "footnoteref") {
555 var href
= spans
[i
].getElementsByTagName("a")[0].getAttribute("href");
556 href
= href
.match(/#.*/)[0]; // Because IE return full URL.
559 "[<a href='#_footnote_" + n
+
560 "' title='View footnote' class='footnote'>" + n
+ "</a>]";
573 git-notes(
1) Manual Page
576 <div class=
"sectionbody">
578 Add or inspect object notes
583 <h2 id=
"_synopsis">SYNOPSIS
</h2>
584 <div class=
"sectionbody">
585 <div class=
"verseblock">
586 <div class=
"verseblock-content"><em>git notes
</em> [list [
<object
>]]
587 <em>git notes
</em> add [-f] [-F
<file
> | -m
<msg
> | (-c | -C)
<object
>] [
<object
>]
588 <em>git notes
</em> copy [-f] ( --stdin |
<from-object
> <to-object
> )
589 <em>git notes
</em> append [-F
<file
> | -m
<msg
> | (-c | -C)
<object
>] [
<object
>]
590 <em>git notes
</em> edit [
<object
>]
591 <em>git notes
</em> show [
<object
>]
592 <em>git notes
</em> merge [-v | -q] [-s
<strategy
> ]
<notes_ref
>
593 <em>git notes
</em> merge --commit [-v | -q]
594 <em>git notes
</em> merge --abort [-v | -q]
595 <em>git notes
</em> remove [--ignore-missing] [--stdin] [
<object
>…]
596 <em>git notes
</em> prune [-n | -v]
597 <em>git notes
</em> get-ref
</div>
598 <div class=
"verseblock-attribution">
601 <h2 id=
"_description">DESCRIPTION
</h2>
602 <div class=
"sectionbody">
603 <div class=
"paragraph"><p>Adds, removes, or reads notes attached to objects, without touching
604 the objects themselves.
</p></div>
605 <div class=
"paragraph"><p>By default, notes are saved to and read from
<tt>refs/notes/commits
</tt>, but
606 this default can be overridden. See the OPTIONS, CONFIGURATION, and
607 ENVIRONMENT sections below. If this ref does not exist, it will be
608 quietly created when it is first needed to store a note.
</p></div>
609 <div class=
"paragraph"><p>A typical use of notes is to supplement a commit message without
610 changing the commit itself. Notes can be shown by
<em>git log
</em> along with
611 the original commit message. To distinguish these notes from the
612 message stored in the commit object, the notes are indented like the
613 message, after an unindented line saying
"Notes (<refname>):" (or
614 "Notes:" for
<tt>refs/notes/commits
</tt>).
</p></div>
615 <div class=
"paragraph"><p>To change which notes are shown by
<em>git log
</em>, see the
616 "notes.displayRef" configuration in
<a href=
"git-log.html">git-log(
1)
</a>.
</p></div>
617 <div class=
"paragraph"><p>See the
"notes.rewrite.<command>" configuration for a way to carry
618 notes across commands that rewrite commits.
</p></div>
620 <h2 id=
"_subcommands">SUBCOMMANDS
</h2>
621 <div class=
"sectionbody">
622 <div class=
"dlist"><dl>
628 List the notes object for a given object. If no object is
629 given, show a list of all note objects and the objects they
630 annotate (in the format
"<note object> <annotated object>").
631 This is the default subcommand if no subcommand is given.
639 Add notes for a given object (defaults to HEAD). Abort if the
640 object already has notes (use
<tt>-f
</tt> to overwrite existing notes).
641 However, if you
’re using
<tt>add
</tt> interactively (using an editor
642 to supply the notes contents), then - instead of aborting -
643 the existing notes will be opened in the editor (like the
<tt>edit
</tt>
652 Copy the notes for the first object onto the second object.
653 Abort if the second object already has notes, or if the first
654 object has none (use -f to overwrite existing notes to the
655 second object). This subcommand is equivalent to:
656 <tt>git notes add [-f] -C $(git notes list
<from-object
>)
<to-object
></tt>
658 <div class=
"paragraph"><p>In
<tt>--stdin
</tt> mode, take lines in the format
</p></div>
659 <div class=
"listingblock">
660 <div class=
"content">
661 <pre><tt><from-object
> SP
<to-object
> [ SP
<rest
> ] LF
</tt></pre>
663 <div class=
"paragraph"><p>on standard input, and copy the notes from each
<from-object
> to its
664 corresponding
<to-object
>. (The optional
<tt><rest
></tt> is ignored so that
665 the command can read the input given to the
<tt>post-rewrite
</tt> hook.)
</p></div>
672 Append to the notes of an existing object (defaults to HEAD).
673 Creates a new notes object if needed.
681 Edit the notes for a given object (defaults to HEAD).
689 Show the notes for a given object (defaults to HEAD).
697 Merge the given notes ref into the current notes ref.
698 This will try to merge the changes made by the given
699 notes ref (called
"remote") since the merge-base (if
700 any) into the current notes ref (called
"local").
702 <div class=
"paragraph"><p>If conflicts arise and a strategy for automatically resolving
703 conflicting notes (see the -s/--strategy option) is not given,
704 the
"manual" resolver is used. This resolver checks out the
705 conflicting notes in a special worktree (
<tt>.git/NOTES_MERGE_WORKTREE
</tt>),
706 and instructs the user to manually resolve the conflicts there.
707 When done, the user can either finalize the merge with
708 <em>git notes merge --commit
</em>, or abort the merge with
709 <em>git notes merge --abort
</em>.
</p></div>
716 Remove the notes for given objects (defaults to HEAD). When
717 giving zero or one object from the command line, this is
718 equivalent to specifying an empty note message to
719 the
<tt>edit
</tt> subcommand.
727 Remove all notes for non-existing/unreachable objects.
735 Print the current notes ref. This provides an easy way to
736 retrieve the current notes ref (e.g. from scripts).
741 <h2 id=
"_options">OPTIONS
</h2>
742 <div class=
"sectionbody">
743 <div class=
"dlist"><dl>
752 When adding notes to an object that already has notes,
753 overwrite the existing notes (instead of aborting).
760 --message=
<msg
>
764 Use the given note message (instead of prompting).
765 If multiple
<tt>-m
</tt> options are given, their values
766 are concatenated as separate paragraphs.
767 Lines starting with
<tt>#
</tt> and empty lines other than a
768 single line between paragraphs will be stripped out.
779 Take the note message from the given file. Use
<em>-
</em> to
780 read the note message from the standard input.
781 Lines starting with
<tt>#
</tt> and empty lines other than a
782 single line between paragraphs will be stripped out.
789 --reuse-message=
<object
>
793 Take the given blob object (for example, another note) as the
794 note message. (Use
<tt>git notes copy
<object
></tt> instead to
795 copy notes between objects.)
802 --reedit-message=
<object
>
806 Like
<em>-C
</em>, but with
<em>-c
</em> the editor is invoked, so that
807 the user can further edit the note message.
815 Manipulate the notes tree in
<ref
>. This overrides
816 <em>GIT_NOTES_REF
</em> and the
"core.notesRef" configuration. The ref
817 is taken to be in
<tt>refs/notes/
</tt> if it is not qualified.
825 Do not consider it an error to request removing notes from an
826 object that does not have notes attached to it.
834 Also read the object names to remove notes from from the standard
835 input (there is no reason you cannot combine this with object
836 names from the command line).
847 Do not remove anything; just report the object names whose notes
855 --strategy=
<strategy
>
859 When merging notes, resolve notes conflicts using the given
860 strategy. The following strategies are recognized:
"manual"
861 (default),
"ours",
"theirs",
"union" and
"cat_sort_uniq".
862 See the
"NOTES MERGE STRATEGIES" section below for more
863 information on each notes merge strategy.
871 Finalize an in-progress
<em>git notes merge
</em>. Use this option
872 when you have resolved the conflicts that
<em>git notes merge
</em>
873 stored in .git/NOTES_MERGE_WORKTREE. This amends the partial
874 merge commit created by
<em>git notes merge
</em> (stored in
875 .git/NOTES_MERGE_PARTIAL) by adding the notes in
876 .git/NOTES_MERGE_WORKTREE. The notes ref stored in the
877 .git/NOTES_MERGE_REF symref is updated to the resulting commit.
885 Abort/reset a in-progress
<em>git notes merge
</em>, i.e. a notes merge
886 with conflicts. This simply removes all files related to the
898 When merging notes, operate quietly.
909 When merging notes, be more verbose.
910 When pruning notes, report all object names whose notes are
916 <h2 id=
"_discussion">DISCUSSION
</h2>
917 <div class=
"sectionbody">
918 <div class=
"paragraph"><p>Commit notes are blobs containing extra information about an object
919 (usually information to supplement a commit
’s message). These blobs
920 are taken from notes refs. A notes ref is usually a branch which
921 contains
"files" whose paths are the object names for the objects
922 they describe, with some directory separators included for performance
923 reasons
<span class=
"footnote"><br />[Permitted pathnames have the form
924 <em>ab
</em><tt>/
</tt><em>cd
</em><tt>/
</tt><em>ef
</em><tt>/
</tt><em>…</em><tt>/
</tt><em>abcdef
…</em>: a sequence of directory
925 names of two hexadecimal digits each followed by a filename with the
926 rest of the object ID.]
<br /></span>.
</p></div>
927 <div class=
"paragraph"><p>Every notes change creates a new commit at the specified notes ref.
928 You can therefore inspect the history of the notes by invoking, e.g.,
929 <tt>git log -p notes/commits
</tt>. Currently the commit message only records
930 which operation triggered the update, and the commit authorship is
931 determined according to the usual rules (see
<a href=
"git-commit.html">git-commit(
1)
</a>).
932 These details may change in the future.
</p></div>
933 <div class=
"paragraph"><p>It is also permitted for a notes ref to point directly to a tree
934 object, in which case the history of the notes can be read with
935 <tt>git log -p -g
<refname
></tt>.
</p></div>
937 <h2 id=
"_notes_merge_strategies">NOTES MERGE STRATEGIES
</h2>
938 <div class=
"sectionbody">
939 <div class=
"paragraph"><p>The default notes merge strategy is
"manual", which checks out
940 conflicting notes in a special work tree for resolving notes conflicts
941 (
<tt>.git/NOTES_MERGE_WORKTREE
</tt>), and instructs the user to resolve the
942 conflicts in that work tree.
943 When done, the user can either finalize the merge with
944 <em>git notes merge --commit
</em>, or abort the merge with
945 <em>git notes merge --abort
</em>.
</p></div>
946 <div class=
"paragraph"><p>"ours" automatically resolves conflicting notes in favor of the local
947 version (i.e. the current notes ref).
</p></div>
948 <div class=
"paragraph"><p>"theirs" automatically resolves notes conflicts in favor of the remote
949 version (i.e. the given notes ref being merged into the current notes
951 <div class=
"paragraph"><p>"union" automatically resolves notes conflicts by concatenating the
952 local and remote versions.
</p></div>
953 <div class=
"paragraph"><p>"cat_sort_uniq" is similar to
"union", but in addition to concatenating
954 the local and remote versions, this strategy also sorts the resulting
955 lines, and removes duplicate lines from the result. This is equivalent
956 to applying the
"cat | sort | uniq" shell pipeline to the local and
957 remote versions. This strategy is useful if the notes follow a line-based
958 format where one wants to avoid duplicated lines in the merge result.
959 Note that if either the local or remote version contain duplicate lines
960 prior to the merge, these will also be removed by this notes merge
963 <h2 id=
"_examples">EXAMPLES
</h2>
964 <div class=
"sectionbody">
965 <div class=
"paragraph"><p>You can use notes to add annotations with information that was not
966 available at the time a commit was written.
</p></div>
967 <div class=
"listingblock">
968 <div class=
"content">
969 <pre><tt>$ git notes add -m 'Tested-by: Johannes Sixt
<j6t@kdbg.org
>'
72a144e2
970 $ git show -s
72a144e
972 Signed-off-by: Junio C Hamano
<gitster@pobox.com
>
975 Tested-by: Johannes Sixt
<j6t@kdbg.org
></tt></pre>
977 <div class=
"paragraph"><p>In principle, a note is a regular Git blob, and any kind of
978 (non-)format is accepted. You can binary-safely create notes from
979 arbitrary files using
<em>git hash-object
</em>:
</p></div>
980 <div class=
"listingblock">
981 <div class=
"content">
983 $ blob=$(git hash-object -w a.out)
984 $ git notes --ref=built add -C
"$blob" HEAD
</tt></pre>
986 <div class=
"paragraph"><p>(You cannot simply use
<tt>git notes --ref=built add -F a.out HEAD
</tt>
987 because that is not binary-safe.)
988 Of course, it doesn
’t make much sense to display non-text-format notes
989 with
<em>git log
</em>, so if you use such notes, you
’ll probably need to write
990 some special-purpose tools to do something useful with them.
</p></div>
992 <h2 id=
"_configuration">CONFIGURATION
</h2>
993 <div class=
"sectionbody">
994 <div class=
"dlist"><dl>
1000 Notes ref to read and manipulate instead of
1001 <tt>refs/notes/commits
</tt>. Must be an unabbreviated ref name.
1002 This setting can be overridden through the environment and
1006 <dt class=
"hdlist1">
1011 Which ref (or refs, if a glob or specified more than once), in
1012 addition to the default set by
<tt>core.notesRef
</tt> or
1013 <em>GIT_NOTES_REF
</em>, to read notes from when showing commit
1014 messages with the
<em>git log
</em> family of commands.
1015 This setting can be overridden on the command line or by the
1016 <em>GIT_NOTES_DISPLAY_REF
</em> environment variable.
1017 See
<a href=
"git-log.html">git-log(
1)
</a>.
1020 <dt class=
"hdlist1">
1021 notes.rewrite.
<command
>
1025 When rewriting commits with
<command
> (currently
<tt>amend
</tt> or
1026 <tt>rebase
</tt>), if this variable is
<tt>false
</tt>, git will not copy
1027 notes from the original to the rewritten commit. Defaults to
1028 <tt>true
</tt>. See also
"<tt>notes.rewriteRef</tt>" below.
1030 <div class=
"paragraph"><p>This setting can be overridden by the
<em>GIT_NOTES_REWRITE_REF
</em>
1031 environment variable.
</p></div>
1033 <dt class=
"hdlist1">
1038 When copying notes during a rewrite, what to do if the target
1039 commit already has a note. Must be one of
<tt>overwrite
</tt>,
1040 <tt>concatenate
</tt>, and
<tt>ignore
</tt>. Defaults to
<tt>concatenate
</tt>.
1042 <div class=
"paragraph"><p>This setting can be overridden with the
<tt>GIT_NOTES_REWRITE_MODE
</tt>
1043 environment variable.
</p></div>
1045 <dt class=
"hdlist1">
1050 When copying notes during a rewrite, specifies the (fully
1051 qualified) ref whose notes should be copied. May be a glob,
1052 in which case notes in all matching refs will be copied. You
1053 may also specify this configuration several times.
1055 <div class=
"paragraph"><p>Does not have a default value; you must configure this variable to
1056 enable note rewriting.
</p></div>
1057 <div class=
"paragraph"><p>Can be overridden with the
<em>GIT_NOTES_REWRITE_REF
</em> environment variable.
</p></div>
1061 <h2 id=
"_environment">ENVIRONMENT
</h2>
1062 <div class=
"sectionbody">
1063 <div class=
"dlist"><dl>
1064 <dt class=
"hdlist1">
1065 <em>GIT_NOTES_REF
</em>
1069 Which ref to manipulate notes from, instead of
<tt>refs/notes/commits
</tt>.
1070 This overrides the
<tt>core.notesRef
</tt> setting.
1073 <dt class=
"hdlist1">
1074 <em>GIT_NOTES_DISPLAY_REF
</em>
1078 Colon-delimited list of refs or globs indicating which refs,
1079 in addition to the default from
<tt>core.notesRef
</tt> or
1080 <em>GIT_NOTES_REF
</em>, to read notes from when showing commit
1082 This overrides the
<tt>notes.displayRef
</tt> setting.
1084 <div class=
"paragraph"><p>A warning will be issued for refs that do not exist, but a glob that
1085 does not match any refs is silently ignored.
</p></div>
1087 <dt class=
"hdlist1">
1088 <em>GIT_NOTES_REWRITE_MODE
</em>
1092 When copying notes during a rewrite, what to do if the target
1093 commit already has a note.
1094 Must be one of
<tt>overwrite
</tt>,
<tt>concatenate
</tt>, and
<tt>ignore
</tt>.
1095 This overrides the
<tt>core.rewriteMode
</tt> setting.
1098 <dt class=
"hdlist1">
1099 <em>GIT_NOTES_REWRITE_REF
</em>
1103 When rewriting commits, which notes to copy from the original
1104 to the rewritten commit. Must be a colon-delimited list of
1107 <div class=
"paragraph"><p>If not set in the environment, the list of notes to copy depends
1108 on the
<tt>notes.rewrite.
<command
></tt> and
<tt>notes.rewriteRef
</tt> settings.
</p></div>
1112 <h2 id=
"_author">Author
</h2>
1113 <div class=
"sectionbody">
1114 <div class=
"paragraph"><p>Written by Johannes Schindelin
<<a href=
"mailto:johannes.schindelin@gmx.de">johannes.schindelin@gmx.de
</a>> and
1115 Johan Herland
<<a href=
"mailto:johan@herland.net">johan@herland.net
</a>></p></div>
1117 <h2 id=
"_documentation">Documentation
</h2>
1118 <div class=
"sectionbody">
1119 <div class=
"paragraph"><p>Documentation by Johannes Schindelin and Johan Herland
</p></div>
1121 <h2 id=
"_git">GIT
</h2>
1122 <div class=
"sectionbody">
1123 <div class=
"paragraph"><p>Part of the
<a href=
"git.html">git(
7)
</a> suite
</p></div>
1126 <div id=
"footnotes"><hr /></div>
1128 <div id=
"footer-text">
1129 Last updated
2011-
09-
21 23:
01:
14 PDT