rebase -i: squash should retain the authorship of the _first_ commit
[gitweb.git] / generate-cmdlist.sh
index 6ee85d5a5316d21c930bb31ba8fac4c651253ac0..17df47b95067449f03039b8ecd7715701302fa68 100755 (executable)
@@ -4,14 +4,15 @@ echo "/* Automatically generated by $0 */
 struct cmdname_help
 {
     char name[16];
-    char help[64];
+    char help[80];
 };
 
-struct cmdname_help common_cmds[] = {"
+static struct cmdname_help common_cmds[] = {"
 
 sort <<\EOF |
 add
 apply
+archive
 bisect
 branch
 checkout
@@ -21,7 +22,7 @@ commit
 diff
 fetch
 grep
-init-db
+init
 log
 merge
 mv
@@ -36,13 +37,15 @@ show
 show-branch
 status
 tag
-verify-tag
-whatchanged
 EOF
 while read cmd
 do
-    sed -n "/NAME/,/git-$cmd/H;
-           \$ {x; s/.*git-$cmd - \\(.*\\)/  {\"$cmd\", \"\1\"},/; p}" \
-       "Documentation/git-$cmd.txt"
+     sed -n '
+     /NAME/,/git-'"$cmd"'/H
+     ${
+            x
+            s/.*git-'"$cmd"' - \(.*\)/  {"'"$cmd"'", "\1"},/
+           p
+     }' "Documentation/git-$cmd.txt"
 done
 echo "};"