Skip to contentSkip to conversation

Cogito: Minor documentation fixes

PATCH New Jonas Fonseca 1 participant 1 message Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Cogito: Minor documentation fixes

- 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.

---

 Documentation/make-cogito-asciidoc |    4 ++--
 cg-commit                          |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
Documentation/make-cogito-asciidoc +2 -2
@@ -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
cg-commit +2 -2
@@ -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
 
Signature · 1 line
Jonas Fonseca