Staging
v0.5.1
v0.5.1
Revision d0f1ea6003d97e63110fa7d50bb07f546a909b6e authored by Junio C Hamano on 26 April 2012, 17:23:15 UTC, committed by Junio C Hamano on 26 April 2012, 17:23:15 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent b2bab5b
generate-cmdlist.sh
#!/bin/sh
echo "/* Automatically generated by $0 */
struct cmdname_help {
char name[16];
char help[80];
};
static struct cmdname_help common_cmds[] = {"
sed -n -e 's/^git-\([^ ]*\)[ ].* common.*/\1/p' command-list.txt |
sort |
while read cmd
do
sed -n '
/^NAME/,/git-'"$cmd"'/H
${
x
s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/
p
}' "Documentation/git-$cmd.txt"
done
echo "};"
Computing file changes ...