generate-cmdlist: style cleanups.
Instead of giving multiple commands concatenated with semicolon to sed, write them on separate lines. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@ -41,8 +41,12 @@ whatchanged
|
|||||||
EOF
|
EOF
|
||||||
while read cmd
|
while read cmd
|
||||||
do
|
do
|
||||||
sed -n "/NAME/,/git-$cmd/H;
|
sed -n '
|
||||||
\$ {x; s/.*git-$cmd - \\(.*\\)/ {\"$cmd\", \"\1\"},/; p;}" \
|
/NAME/,/git-'"$cmd"'/H
|
||||||
"Documentation/git-$cmd.txt"
|
${
|
||||||
|
x
|
||||||
|
s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/
|
||||||
|
p
|
||||||
|
}' "Documentation/git-$cmd.txt"
|
||||||
done
|
done
|
||||||
echo "};"
|
echo "};"
|
||||||
|
Reference in New Issue
Block a user