Skip to content

Commit fd662dd

Browse files
author
Junio C Hamano
committed
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>
1 parent ad52e77 commit fd662dd

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

generate-cmdlist.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@ whatchanged
4141
EOF
4242
while read cmd
4343
do
44-
sed -n "/NAME/,/git-$cmd/H;
45-
\$ {x; s/.*git-$cmd - \\(.*\\)/ {\"$cmd\", \"\1\"},/; p;}" \
46-
"Documentation/git-$cmd.txt"
44+
sed -n '
45+
/NAME/,/git-'"$cmd"'/H
46+
${
47+
x
48+
s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/
49+
p
50+
}' "Documentation/git-$cmd.txt"
4751
done
4852
echo "};"

0 commit comments

Comments
 (0)