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

[PATCH] Cogito: Minor documentation fixes

From
Jonas Fonseca <fonseca@diku.dk>
Date
Sep 23, 2005, 00:40 UTC
Message-ID
<20050923004033.GA23708@diku.dk>
 - Link to the new cg-object-id man page from cogito(7).
 - Fix cg-help usage string listing in cogito(7).
 - Make the cg-commit -m option more conforming to other options taking
   arguments (the old usage remains).
 - Use COMMIT_ID consistently.
Signed-of-by: Jonas Fonseca <fonseca@diku.dk>
---
 Documentation/make-cogito-asciidoc |    4 ++--
 cg-commit                          |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Documentation/make-cogito-asciidoc b/Documentation/make-cogito-asciidoc
--- a/Documentation/make-cogito-asciidoc
+++ b/Documentation/make-cogito-asciidoc
@@ -24,11 +24,11 @@ print_command_info()
 
 	echo
 	case "$cmdname" in
-	cg-X*|*-id)
+	cg-X*)
 		echo "$cmdname::"
 		;;
 	cg-*)
-		usage=$(sed -n '/^USAGE=/,0s/.*cg-[^ ]*\(.*\)"/\1/p' < $command)
+		usage=$(sed -n '/^USAGE=/,0s/.*"cg-[^ ]*\(.*\)"/\1/p' < $command)
 		echo "gitlink:$cmdname[] $usage::"
 		;;
 	esac
diff --git a/cg-commit b/cg-commit
--- a/cg-commit
+++ b/cg-commit
@@ -25,7 +25,7 @@
 #	Note, this is used internally by 'Cogito' when merging. This option
 #	does not make sense when files are given on the command line.
 #
-# -mMESSAGE::
+# -m MESSAGE::
 #	Specify the commit message, which is used instead of starting
 #	up an editor (if the input is not `stdin`, the input is appended
 #	after all the '-m' messages). Multiple '-m' parameters are appended
@@ -111,7 +111,7 @@
 # EDITOR::
 #	The editor used for entering revision log information.
 
-USAGE="cg-commit [-mMESSAGE]... [-C] [-e | -E] [-c COMMITID] [FILE]... [< MESSAGE]"
+USAGE="cg-commit [-m MESSAGE]... [-C] [-e | -E] [-c COMMIT_ID] [FILE]... [< MESSAGE]"
 
 . ${COGITO_LIB}cg-Xlib || exit 1
 
-- 
Jonas Fonseca
Message 1 of 1 in “Cogito: Minor documentation fixes”
  1. Cogito: Minor documentation fixesJonas Fonseca, Sep 23, 2005

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.