2009-10-09 12:21:58 +02:00
|
|
|
git-notes(1)
|
|
|
|
============
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
2010-02-13 22:28:29 +01:00
|
|
|
git-notes - Add/inspect object notes
|
2009-10-09 12:21:58 +02:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
[verse]
|
2010-02-13 22:28:30 +01:00
|
|
|
'git notes' [list [<object>]]
|
2010-02-13 22:28:36 +01:00
|
|
|
'git notes' add [-f] [-F <file> | -m <msg> | (-c | -C) <object>] [<object>]
|
2010-02-13 22:28:38 +01:00
|
|
|
'git notes' copy [-f] <from-object> <to-object>
|
2010-02-13 22:28:36 +01:00
|
|
|
'git notes' append [-F <file> | -m <msg> | (-c | -C) <object>] [<object>]
|
2010-02-13 22:28:34 +01:00
|
|
|
'git notes' edit [<object>]
|
2010-02-13 22:28:30 +01:00
|
|
|
'git notes' show [<object>]
|
|
|
|
'git notes' remove [<object>]
|
|
|
|
'git notes' prune
|
|
|
|
|
2009-10-09 12:21:58 +02:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2010-02-13 22:28:29 +01:00
|
|
|
This command allows you to add/remove notes to/from objects, without
|
|
|
|
changing the objects themselves.
|
2009-10-09 12:21:58 +02:00
|
|
|
|
2010-02-13 22:28:29 +01:00
|
|
|
A typical use of notes is to extend a commit message without having
|
|
|
|
to change the commit itself. Such commit notes can be shown by `git log`
|
|
|
|
along with the original commit message. To discern these notes from the
|
|
|
|
message stored in the commit object, the notes are indented like the
|
|
|
|
message, after an unindented line saying "Notes:".
|
|
|
|
|
|
|
|
To disable notes, you have to set the config variable core.notesRef to
|
|
|
|
the empty string. Alternatively, you can set it to a different ref,
|
|
|
|
something like "refs/notes/bugzilla". This setting can be overridden
|
|
|
|
by the environment variable "GIT_NOTES_REF".
|
2009-10-09 12:21:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
SUBCOMMANDS
|
|
|
|
-----------
|
|
|
|
|
2010-02-13 22:28:30 +01:00
|
|
|
list::
|
|
|
|
List the notes object for a given object. If no object is
|
|
|
|
given, show a list of all note objects and the objects they
|
|
|
|
annotate (in the format "<note object> <annotated object>").
|
|
|
|
This is the default subcommand if no subcommand is given.
|
|
|
|
|
2010-02-13 22:28:32 +01:00
|
|
|
add::
|
|
|
|
Add notes for a given object (defaults to HEAD). Abort if the
|
2010-03-04 15:31:17 +01:00
|
|
|
object already has notes (use `-f` to overwrite an
|
2010-02-13 22:28:32 +01:00
|
|
|
existing note).
|
|
|
|
|
2010-02-13 22:28:38 +01:00
|
|
|
copy::
|
|
|
|
Copy the notes for the first object onto the second object.
|
|
|
|
Abort if the second object already has notes, or if the first
|
2010-03-04 15:31:17 +01:00
|
|
|
object has none (use -f to overwrite existing notes to the
|
2010-02-13 22:28:38 +01:00
|
|
|
second object). This subcommand is equivalent to:
|
|
|
|
`git notes add [-f] -C $(git notes list <from-object>) <to-object>`
|
|
|
|
|
2010-02-13 22:28:33 +01:00
|
|
|
append::
|
|
|
|
Append to the notes of an existing object (defaults to HEAD).
|
|
|
|
Creates a new notes object if needed.
|
|
|
|
|
2009-10-09 12:21:58 +02:00
|
|
|
edit::
|
2010-02-13 22:28:29 +01:00
|
|
|
Edit the notes for a given object (defaults to HEAD).
|
2009-10-09 12:21:58 +02:00
|
|
|
|
|
|
|
show::
|
2010-02-13 22:28:29 +01:00
|
|
|
Show the notes for a given object (defaults to HEAD).
|
2009-10-09 12:21:58 +02:00
|
|
|
|
2010-02-13 22:28:25 +01:00
|
|
|
remove::
|
2010-02-13 22:28:29 +01:00
|
|
|
Remove the notes for a given object (defaults to HEAD).
|
2010-02-13 22:28:25 +01:00
|
|
|
This is equivalent to specifying an empty note message to
|
|
|
|
the `edit` subcommand.
|
|
|
|
|
2010-02-13 22:28:28 +01:00
|
|
|
prune::
|
|
|
|
Remove all notes for non-existing/unreachable objects.
|
2009-10-09 12:21:58 +02:00
|
|
|
|
2009-10-09 12:22:01 +02:00
|
|
|
OPTIONS
|
|
|
|
-------
|
2010-02-13 22:28:32 +01:00
|
|
|
-f::
|
|
|
|
--force::
|
|
|
|
When adding notes to an object that already has notes,
|
|
|
|
overwrite the existing notes (instead of aborting).
|
|
|
|
|
2009-10-09 12:22:01 +02:00
|
|
|
-m <msg>::
|
2010-02-13 22:28:31 +01:00
|
|
|
--message=<msg>::
|
2009-10-09 12:22:01 +02:00
|
|
|
Use the given note message (instead of prompting).
|
2010-02-13 22:28:20 +01:00
|
|
|
If multiple `-m` options are given, their values
|
|
|
|
are concatenated as separate paragraphs.
|
2009-10-09 12:22:01 +02:00
|
|
|
|
|
|
|
-F <file>::
|
2010-02-13 22:28:31 +01:00
|
|
|
--file=<file>::
|
2009-10-09 12:22:01 +02:00
|
|
|
Take the note message from the given file. Use '-' to
|
|
|
|
read the note message from the standard input.
|
|
|
|
|
2010-02-13 22:28:36 +01:00
|
|
|
-C <object>::
|
|
|
|
--reuse-message=<object>::
|
|
|
|
Reuse the note message from the given note object.
|
|
|
|
|
|
|
|
-c <object>::
|
|
|
|
--reedit-message=<object>::
|
|
|
|
Like '-C', but with '-c' the editor is invoked, so that
|
|
|
|
the user can further edit the note message.
|
2009-10-09 12:22:01 +02:00
|
|
|
|
2009-10-09 12:21:58 +02:00
|
|
|
Author
|
|
|
|
------
|
2010-02-13 22:28:29 +01:00
|
|
|
Written by Johannes Schindelin <johannes.schindelin@gmx.de> and
|
|
|
|
Johan Herland <johan@herland.net>
|
2009-10-09 12:21:58 +02:00
|
|
|
|
|
|
|
Documentation
|
|
|
|
-------------
|
2010-02-13 22:28:29 +01:00
|
|
|
Documentation by Johannes Schindelin and Johan Herland
|
2009-10-09 12:21:58 +02:00
|
|
|
|
|
|
|
GIT
|
|
|
|
---
|
|
|
|
Part of the linkgit:git[7] suite
|