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

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

From
Fernando J. Pereda <ferdy@ferdyx.org>
Date
Oct 5, 2005, 16:03 UTC
Message-ID
<20051005160358.GA9870@ferdyx.org>
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
Message 1 of 1 in “Fix 'cg-*-id' to make 'make-cg-asciidoc' happy”
  1. Fix 'cg-*-id' to make 'make-cg-asciidoc' happyFernando J. Pereda, Oct 5, 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.