* [PATCH Cogito] Fix 'cg-*-id' to make 'make-cg-asciidoc' happy
@ 2005-10-05 16:03 Fernando J. Pereda
0 siblings, 0 replies; only message in thread
From: Fernando J. Pereda @ 2005-10-05 16:03 UTC (permalink / raw)
To: GIT Mailing List
[-- Attachment #1.1: Type: text/plain, Size: 441 bytes --]
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
[-- Attachment #1.2: cogito-0.15-doc.patch --]
[-- Type: text/plain, Size: 1211 bytes --]
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
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-05 16:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-05 16:03 [PATCH Cogito] Fix 'cg-*-id' to make 'make-cg-asciidoc' happy Fernando J. Pereda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).