Staging
v0.5.2
https://github.com/git/git
Revision 75bd7e374ef35265dfd7c3c1896f4fb91450e50d authored by Eric Wong on 05 November 2006, 05:51:10 UTC, committed by Junio C Hamano on 09 November 2006, 17:34:27 UTC
This is purely an aesthetic change, we already skip importing of
files that don't affect the subdirectory we import.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 916d081
Raw File
Tip revision: 75bd7e374ef35265dfd7c3c1896f4fb91450e50d authored by Eric Wong on 05 November 2006, 05:51:10 UTC
git-svn: avoid printing filenames of files we're not tracking
Tip revision: 75bd7e3
generate-cmdlist.sh
#!/bin/sh

echo "/* Automatically generated by $0 */
struct cmdname_help
{
    char name[16];
    char help[64];
};

struct cmdname_help common_cmds[] = {"

sort <<\EOF |
add
apply
archive
bisect
branch
checkout
cherry-pick
clone
commit
diff
fetch
grep
init-db
log
merge
mv
prune
pull
push
rebase
reset
revert
rm
show
show-branch
status
tag
verify-tag
EOF
while read cmd
do
     sed -n '
     /NAME/,/git-'"$cmd"'/H
     ${
            x
            s/.*git-'"$cmd"' - \(.*\)/  {"'"$cmd"'", "\1"},/
	    p
     }' "Documentation/git-$cmd.txt"
done
echo "};"
back to top