diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-10-17 00:12:34 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-18 08:01:48 +0900 |
commit | 89dd32aedcb52a77240f3923a687edc8a61662e7 (patch) | |
tree | 99ebdc9614b4054a6d7d05321eeacb1804d52eee /t/t3002-ls-files-dashpath.sh | |
parent | check-ref-format --branch: strip refs/heads/ using skip_prefix (diff) | |
download | tgif-89dd32aedcb52a77240f3923a687edc8a61662e7.tar.xz |
check-ref-format doc: --branch validates and expands <branch>
"git check-ref-format --branch $name" feature was originally
introduced (and was advertised) as a way for scripts to take any
end-user supplied string (like "master", "@{-1}" etc.) and see if it
is usable when Git expects to see a branch name, and also obtain the
concrete branch name that the at-mark magic expands to.
Emphasize that "see if it is usable" role in the description and
clarify that the @{...} expansion only occurs when run from within a
repository.
[jn: split out from a larger patch]
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3002-ls-files-dashpath.sh')
0 files changed, 0 insertions, 0 deletions