]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-notes.txt
builtin-notes: Add "list" subcommand for listing note objects
[thirdparty/git.git] / Documentation / git-notes.txt
CommitLineData
65d9fb48
JS
1git-notes(1)
2============
3
4NAME
5----
7d541174 6git-notes - Add/inspect object notes
65d9fb48
JS
7
8SYNOPSIS
9--------
10[verse]
e397421a
JH
11'git notes' [list [<object>]]
12'git notes' edit [-F <file> | -m <msg>] [<object>]
13'git notes' show [<object>]
14'git notes' remove [<object>]
15'git notes' prune
16
65d9fb48
JS
17
18DESCRIPTION
19-----------
7d541174
JH
20This command allows you to add/remove notes to/from objects, without
21changing the objects themselves.
65d9fb48 22
7d541174
JH
23A typical use of notes is to extend a commit message without having
24to change the commit itself. Such commit notes can be shown by `git log`
25along with the original commit message. To discern these notes from the
26message stored in the commit object, the notes are indented like the
27message, after an unindented line saying "Notes:".
28
29To disable notes, you have to set the config variable core.notesRef to
30the empty string. Alternatively, you can set it to a different ref,
31something like "refs/notes/bugzilla". This setting can be overridden
32by the environment variable "GIT_NOTES_REF".
65d9fb48
JS
33
34
35SUBCOMMANDS
36-----------
37
e397421a
JH
38list::
39 List the notes object for a given object. If no object is
40 given, show a list of all note objects and the objects they
41 annotate (in the format "<note object> <annotated object>").
42 This is the default subcommand if no subcommand is given.
43
65d9fb48 44edit::
7d541174 45 Edit the notes for a given object (defaults to HEAD).
65d9fb48
JS
46
47show::
7d541174 48 Show the notes for a given object (defaults to HEAD).
65d9fb48 49
92b3385f 50remove::
7d541174 51 Remove the notes for a given object (defaults to HEAD).
92b3385f
JH
52 This is equivalent to specifying an empty note message to
53 the `edit` subcommand.
54
d6576e1f
JH
55prune::
56 Remove all notes for non-existing/unreachable objects.
65d9fb48 57
d9246d43
JH
58OPTIONS
59-------
60-m <msg>::
61 Use the given note message (instead of prompting).
cd067d3b
JH
62 If multiple `-m` options are given, their values
63 are concatenated as separate paragraphs.
d9246d43
JH
64
65-F <file>::
66 Take the note message from the given file. Use '-' to
67 read the note message from the standard input.
d9246d43
JH
68
69
65d9fb48
JS
70Author
71------
7d541174
JH
72Written by Johannes Schindelin <johannes.schindelin@gmx.de> and
73Johan Herland <johan@herland.net>
65d9fb48
JS
74
75Documentation
76-------------
7d541174 77Documentation by Johannes Schindelin and Johan Herland
65d9fb48
JS
78
79GIT
80---
81Part of the linkgit:git[7] suite