generate-cmdlist.shon commit git-diff: -p disables rename detection. (42efbf6)
   1#!/bin/sh
   2
   3echo "/* Automatically generated by $0 */
   4struct cmdname_help
   5{
   6    char name[16];
   7    char help[64];
   8};
   9
  10struct cmdname_help common_cmds[] = {"
  11
  12sort <<\EOF |
  13add
  14apply
  15bisect
  16branch
  17checkout
  18cherry-pick
  19clone
  20commit
  21diff
  22fetch
  23grep
  24init-db
  25log
  26merge
  27mv
  28prune
  29pull
  30push
  31rebase
  32reset
  33revert
  34rm
  35show
  36show-branch
  37status
  38tag
  39verify-tag
  40whatchanged
  41EOF
  42while read cmd
  43do
  44    sed -n "/NAME/,/git-$cmd/H;
  45            \$ {x; s/.*git-$cmd - \\(.*\\)/  {\"$cmd\", \"\1\"},/; p}" \
  46        "Documentation/git-$cmd.txt"
  47done
  48echo "};"