{"thread":{"id":"2020","subject":"[PATCH Cogito] Fix 'cg-*-id' to make 'make-cg-asciidoc' happy","startedAt":"2005-10-05T16:03:58Z","lastAt":"2005-10-05T16:03:58Z","messageCount":1,"participants":["Fernando J. Pereda"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"9708","messageId":"20051005160358.GA9870@ferdyx.org","threadId":"2020","inReplyTo":null,"subject":"[PATCH Cogito] Fix 'cg-*-id' to make 'make-cg-asciidoc' happy","fromName":"Fernando J. Pereda","fromEmail":"ferdy@ferdyx.org","sentAt":"2005-10-05T16:03:58Z","receivedAt":"2005-10-05T16:03:58Z","isPatch":true,"sender":{"key":"ferdy@ferdyx.org","avatar":"https://gravatar.com/avatar/96bf7c1ddf7ccd430255bd12d9d42b212dbc033b28c668a2bdf9c3995aa81e61?d=mp&s=160"},"body":"Hi !\n\nWhen bumping the Gentoo package to cogito-0.15 I came accross a\nproblem while making the documentation. cg-tree-id, cg-parent-id and\ncg-commit-id didn't have an USAGE variable because they don't use it;\nhowever this breaks the documentation generation.\n\nThis trivial patch fixes it.\n\nCheers,\nFerdy\n\n-- \nFernando J. Pereda Garcimartín\nGentoo Developer (Alpha,net-mail)\n20BB BDC3 761A 4781 E6ED  ED0B 0A48 5B0C 60BD 28D4\n\n\ndiff -ur cogito-0.15.old/cg-commit-id cogito-0.15/cg-commit-id\n--- cogito-0.15.old/cg-commit-id\t2005-09-19 02:46:25.000000000 +0200\n+++ cogito-0.15/cg-commit-id\t2005-10-05 17:22:26.000000000 +0200\n@@ -5,6 +5,8 @@\n #\n # Takes the appropriate ID, defaults to HEAD.\n \n+USAGE=\"cg-commit-id [id]\"\n+\n id=\"$1\"\n normid=$(. ${COGITO_LIB}cg-Xnormid \"$id\") || exit 1\n type=${normid#* }\ndiff -ur cogito-0.15.old/cg-parent-id cogito-0.15/cg-parent-id\n--- cogito-0.15.old/cg-parent-id\t2005-09-19 02:46:25.000000000 +0200\n+++ cogito-0.15/cg-parent-id\t2005-10-05 17:24:55.000000000 +0200\n@@ -7,5 +7,7 @@\n #\n # NOTE: Will return multiple SHA1s if ID is a commit with multiple parents.\n \n+USAGE=\"cg-parent-id [id]\"\n+\n normid=$(. ${COGITO_LIB}cg-Xnormid \"$1\"^)\n echo ${normid%% *}\ndiff -ur cogito-0.15.old/cg-tree-id cogito-0.15/cg-tree-id\n--- cogito-0.15.old/cg-tree-id\t2005-09-19 02:46:25.000000000 +0200\n+++ cogito-0.15/cg-tree-id\t2005-10-05 17:25:59.000000000 +0200\n@@ -5,6 +5,8 @@\n #\n # Takes ID of the appropriate commit, defaults to HEAD.\n \n+USAGE=\"cg-tree-id [id]\"\n+\n id=\"$1\"\n normid=$(. ${COGITO_LIB}cg-Xnormid \"$id\") || exit 1\n type=${normid#* }\nOnly in cogito-0.15.old/: cogito.spec\n"}]}