Skip to contentSkip to conversation

Fix 'cg-*-id' to make 'make-cg-asciidoc' happy

PATCH New Fernando J. Pereda 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix 'cg-*-id' to make 'make-cg-asciidoc' happy

Hi !

When bumping the Gentoo package to cogito-0.15 I came accross a problem while making the documentation. cg-tree-id, cg-parent-id and cg-commit-id didn't have an USAGE variable because they don't use it; however this breaks the documentation generation.

This trivial patch fixes it.

Cheers,
Ferdy

Signature · 3 lines
Fernando J. Pereda Garcimartín
Gentoo Developer (Alpha,net-mail)
20BB BDC3 761A 4781 E6ED  ED0B 0A48 5B0C 60BD 28D4
cg-commit-id +2 -0
diff -ur cogito-0.15.old/cg-commit-id cogito-0.15/cg-commit-id
@@ -5,6 +5,8 @@
 #
 # Takes the appropriate ID, defaults to HEAD.
 
+USAGE="cg-commit-id [id]"
+
 id="$1"
 normid=$(. ${COGITO_LIB}cg-Xnormid "$id") || exit 1
 type=${normid#* }
cg-parent-id +2 -0
diff -ur cogito-0.15.old/cg-parent-id cogito-0.15/cg-parent-id
@@ -7,5 +7,7 @@
 #
 # NOTE: Will return multiple SHA1s if ID is a commit with multiple parents.
 
+USAGE="cg-parent-id [id]"
+
 normid=$(. ${COGITO_LIB}cg-Xnormid "$1"^)
 echo ${normid%% *}
cg-tree-id +2 -0
diff -ur cogito-0.15.old/cg-tree-id cogito-0.15/cg-tree-id
@@ -5,6 +5,8 @@
 #
 # Takes ID of the appropriate commit, defaults to HEAD.
 
+USAGE="cg-tree-id [id]"
+
 id="$1"
 normid=$(. ${COGITO_LIB}cg-Xnormid "$id") || exit 1
 type=${normid#* }

Only in cogito-0.15.old/: cogito.spec