builtin-notes: Add "list" subcommand for listing note objects
[git/dkf.git] / Documentation / git-notes.txt
blob4d29d5fb9489e1700fb7e877f0afdc123fccae4b
1 git-notes(1)
2 ============
4 NAME
5 ----
6 git-notes - Add/inspect object notes
8 SYNOPSIS
9 --------
10 [verse]
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
18 DESCRIPTION
19 -----------
20 This command allows you to add/remove notes to/from objects, without
21 changing the objects themselves.
23 A typical use of notes is to extend a commit message without having
24 to change the commit itself. Such commit notes can be shown by `git log`
25 along with the original commit message. To discern these notes from the
26 message stored in the commit object, the notes are indented like the
27 message, after an unindented line saying "Notes:".
29 To disable notes, you have to set the config variable core.notesRef to
30 the empty string.  Alternatively, you can set it to a different ref,
31 something like "refs/notes/bugzilla".  This setting can be overridden
32 by the environment variable "GIT_NOTES_REF".
35 SUBCOMMANDS
36 -----------
38 list::
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.
44 edit::
45         Edit the notes for a given object (defaults to HEAD).
47 show::
48         Show the notes for a given object (defaults to HEAD).
50 remove::
51         Remove the notes for a given object (defaults to HEAD).
52         This is equivalent to specifying an empty note message to
53         the `edit` subcommand.
55 prune::
56         Remove all notes for non-existing/unreachable objects.
58 OPTIONS
59 -------
60 -m <msg>::
61         Use the given note message (instead of prompting).
62         If multiple `-m` options are given, their values
63         are concatenated as separate paragraphs.
65 -F <file>::
66         Take the note message from the given file.  Use '-' to
67         read the note message from the standard input.
70 Author
71 ------
72 Written by Johannes Schindelin <johannes.schindelin@gmx.de> and
73 Johan Herland <johan@herland.net>
75 Documentation
76 -------------
77 Documentation by Johannes Schindelin and Johan Herland
79 GIT
80 ---
81 Part of the linkgit:git[7] suite