From: "Fernando J. Pereda" <ferdy@ferdyx.org>
To: GIT Mailing List <git@vger.kernel.org>
Subject: [PATCH Cogito] Fix 'cg-*-id' to make 'make-cg-asciidoc' happy
Date: Wed, 5 Oct 2005 18:03:58 +0200 [thread overview]
Message-ID: <20051005160358.GA9870@ferdyx.org> (raw)
[-- 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 --]
reply other threads:[~2005-10-05 16:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051005160358.GA9870@ferdyx.org \
--to=ferdy@ferdyx.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).