git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-check-ref-format.txt: fixup documentation

From
Elia Pinto <gitter.spiros@gmail.com>
Date
Sep 20, 2016, 07:33 UTC
Message-ID
<20160920073314.22485-1-gitter.spiros@gmail.com>

die is not a standard shell function. Use a different shell code for the example.

Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
---
 Documentation/git-check-ref-format.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-check-ref-format.txt b/Documentation/git-check-ref-format.txt
index 91a3622..8611a99 100644
--- 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
-- 
2.10.0.645.gc4ba6eb
Next: Junio C Hamano
Message 1 of 2 in “git-check-ref-format.txt: fixup documentation”
  1. git-check-ref-format.txt: fixup documentationElia Pinto, Sep 20, 2016
  2. Junio C HamanoSep 21, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.