@matheusbsbs / matheus-bagliano / commits / fd662dd500
Fork 0

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>

Junio C Hamano committed Mar 19, 2006 at 23:54 UTC fd662dd500cded4b04b1154dc77cc989a5ddc5b8
1 file changed +7 -3
generate-cmdlist.sh
+7 -3
@@ -41,8 +41,12 @@ whatchanged
41 EOF
42 while read cmd
43 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"
51 done
52 echo "};"