From: Joey Hess Date: Thu, 11 Oct 2007 05:23:37 +0000 (-0400) Subject: action abbrevs X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/68af08793da98e4f4285ca6c344cae31f6840706?ds=sidebyside action abbrevs --- diff --git a/mr b/mr index 4396e83..72c917c 100755 --- a/mr +++ b/mr @@ -225,7 +225,8 @@ sub action { } else { print "mr $action: in $dir\n"; - my $command="set -e; my_action(){ $config{$topdir}{$subdir}{$action} ; }; my_action @ARGV"; + my $command="set -e; my_action(){ $config{$topdir}{$subdir}{$action} ; }; my_action ". + join(" ", map { s/\//\/\//g; s/"/\"/g; '"'.$_.'"' } @ARGV); my $ret=system($command); if ($ret != 0) { print STDERR "mr $action: failed to run: $command\n" if $verbose; @@ -367,7 +368,6 @@ commit = \ if [ -d .svn ]; then \ svn commit "$@"; \ elif [ -d .git ]; then \ - echo "foo: $@" \ git commit -a "$@" \ else \ echo "mr commit: unknown repo type"; \