Teach diff -a as shorthand for --text
[gitweb.git] / generate-cmdlist.sh
index 76ba49c88c9ed28c737eace854dec1141f9f60ee..ec1eda20de8d510a9acfd981150a5f1a438a0fe4 100755 (executable)
@@ -37,12 +37,15 @@ show-branch
 status
 tag
 verify-tag
-whatchanged
 EOF
 while read cmd
 do
-    sed -n "/NAME/,/git-$cmd/H;
-           \$ {x; s/.*git-$cmd - \\(.*\\)/  {\"$cmd\", \"\1\"},/; p;}" \
-       "Documentation/git-$cmd.txt"
+     sed -n '
+     /NAME/,/git-'"$cmd"'/H
+     ${
+            x
+            s/.*git-'"$cmd"' - \(.*\)/  {"'"$cmd"'", "\1"},/
+           p
+     }' "Documentation/git-$cmd.txt"
 done
 echo "};"