]> git.ipfire.org Git - thirdparty/git.git/commit - t/t3301-notes.sh
notes: correct documentation of DWIMery for notes references
authorJacob Keller <jacob.keller@gmail.com>
Tue, 22 Sep 2015 22:15:03 +0000 (15:15 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 Sep 2015 22:24:01 +0000 (15:24 -0700)
commite14c92e841fd6d99c8c17af05a411a85ac212254
tree7f8ec8f99501d78fe43bcdc5882c30f745c9ff1c
parentee6ad5f4d56e697c972af86cbefdf269b386e470
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>
Documentation/git-notes.txt
Documentation/pretty-options.txt
t/t3301-notes.sh