Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-check-ref-format.txt: fixup documentation
author
Elia Pinto
<gitter.spiros@gmail.com>
Tue, 20 Sep 2016 07:33:14 +0000
(07:33 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 21 Sep 2016 18:12:41 +0000
(11:12 -0700)
die is not a standard shell function. Use
a different shell code for the example.
Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-check-ref-format.txt
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
50b4a78
)
diff --git
a/Documentation/git-check-ref-format.txt
b/Documentation/git-check-ref-format.txt
index 91a3622ee4e270a11c699e310fb4d544e37845c9..8611a99120eb1c7070b64f80b39b1526225a8019 100644
(file)
--- a/
Documentation/git-check-ref-format.txt
+++ b/
Documentation/git-check-ref-format.txt
@@
-118,8
+118,8
@@
$ git check-ref-format --branch @{-1}
* Determine the reference name to use for a new branch:
+
------------
-$ ref=$(git check-ref-format --normalize "refs/heads/$newbranch")
||
-die "we do not like '$newbranch' as a branch name."
+$ ref=$(git check-ref-format --normalize "refs/heads/$newbranch")||
+{ echo "we do not like '$newbranch' as a branch name." >&2 ; exit 1 ; }
------------
GIT