threads / patch / 2020

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

Subject: [PATCH Cogito] Fix 'cg-*-id' to make 'make-cg-asciidoc' happy

## tl;dr

One message between Oct 5, 2005 and Oct 5, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Fernando J. Pereda· Oct 5, 2005, 16:03 UTC · lore
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

-- 
Fernando J. Pereda Garcimartín
Gentoo Developer (Alpha,net-mail)
20BB BDC3 761A 4781 E6ED  ED0B 0A48 5B0C 60BD 28D4


diff -ur cogito-0.15.old/cg-commit-id cogito-0.15/cg-commit-id
--- cogito-0.15.old/cg-commit-id	2005-09-19 02:46:25.000000000 +0200
+++ cogito-0.15/cg-commit-id	2005-10-05 17:22:26.000000000 +0200
@@ -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#* }
diff -ur cogito-0.15.old/cg-parent-id cogito-0.15/cg-parent-id
--- cogito-0.15.old/cg-parent-id	2005-09-19 02:46:25.000000000 +0200
+++ cogito-0.15/cg-parent-id	2005-10-05 17:24:55.000000000 +0200
@@ -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%% *}
diff -ur cogito-0.15.old/cg-tree-id cogito-0.15/cg-tree-id
--- cogito-0.15.old/cg-tree-id	2005-09-19 02:46:25.000000000 +0200
+++ cogito-0.15/cg-tree-id	2005-10-05 17:25:59.000000000 +0200
@@ -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

← back to recent threads