diff options
author | Jacob Keller <jacob.keller@gmail.com> | 2015-09-22 15:15:03 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-09-22 15:24:01 -0700 |
commit | e14c92e841fd6d99c8c17af05a411a85ac212254 (patch) | |
tree | 7f8ec8f99501d78fe43bcdc5882c30f745c9ff1c /Documentation/pretty-options.txt | |
parent | ee6ad5f4d56e697c972af86cbefdf269b386e470 (diff) | |
download | git-e14c92e841fd6d99c8c17af05a411a85ac212254.tar.gz git-e14c92e841fd6d99c8c17af05a411a85ac212254.tar.xz |
notes: correct documentation of DWIMery for notes references
expand_notes_ref is used by --ref from git-notes(1) and --notes from the
git log to find the full refname of a notes reference. Previously the
documentation of these options was not clear about what sorts of
expansions would be performed. Fix the documentation to clearly and
accurately describe the behavior of the expansions.
Add a test for this expansion when using git notes get-ref in order to
prevent future patches from changing this behavior.
Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/pretty-options.txt')
-rw-r--r-- | Documentation/pretty-options.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/pretty-options.txt b/Documentation/pretty-options.txt index 8d6c5cec4..4b659ac1a 100644 --- a/Documentation/pretty-options.txt +++ b/Documentation/pretty-options.txt @@ -55,8 +55,9 @@ By default, the notes shown are from the notes refs listed in the environment overrides). See linkgit:git-config[1] for more details. + With an optional '<ref>' argument, show this notes ref instead of the -default notes ref(s). The ref is taken to be in `refs/notes/` if it -is not qualified. +default notes ref(s). The ref specifies the full refname when it begins +with `refs/notes/`; when it begins with `notes/`, `refs/` and otherwise +`refs/notes/` is prefixed to form a full name of the ref. + Multiple --notes options can be combined to control which notes are being displayed. Examples: "--notes=foo" will show only notes from |