Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 25 lines (21 sloc) 0.443 kb
a87cd02 Nicer output from 'git'
Fredrik Kuivinen authored
1 #!/bin/sh
2
3 echo "/* Automatically generated by $0 */
4 struct cmdname_help
5 {
6 char name[16];
5d7eeee @dscho git-show: grok blobs, trees and tags, too
dscho authored
7 char help[80];
a87cd02 Nicer output from 'git'
Fredrik Kuivinen authored
8 };
9
4175e9e @gitster More static
gitster authored
10 static struct cmdname_help common_cmds[] = {"
a87cd02 Nicer output from 'git'
Fredrik Kuivinen authored
11
79d3066 @gitster Consolidate command list to one.
gitster authored
12 sed -n -e 's/^git-\([^ ]*\)[ ].* common.*/\1/p' command-list.txt |
13 sort |
a87cd02 Nicer output from 'git'
Fredrik Kuivinen authored
14 while read cmd
15 do
fd662dd generate-cmdlist: style cleanups.
Junio C Hamano authored
16 sed -n '
16d2583 @pclouds generate-cmdlist.sh: avoid selecting synopsis at wrong place
pclouds authored
17 /^NAME/,/git-'"$cmd"'/H
fd662dd generate-cmdlist: style cleanups.
Junio C Hamano authored
18 ${
19 x
20 s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/
21 p
22 }' "Documentation/git-$cmd.txt"
a87cd02 Nicer output from 'git'
Fredrik Kuivinen authored
23 done
24 echo "};"
Something went wrong with that request. Please try again.