3 # usage: 23commit 'log message' filename filename ...
6 use String::ShellQuote;
11 ( my $prefix = $dir ) =~ s(^/home/$USER/freeside/?)() or die $dir; #eventually from anywhere
13 my $desc = shell_quote(shift @ARGV); # -m
15 die "no files!" unless @ARGV;
21 "( cd /home/$USER/freeside2.3/$prefix; git pull ) && ",
22 "git diff -u @ARGV | ( cd /home/$USER/freeside2.3/$prefix; patch ) ",
23 " && ( ( git pull && git commit -m $desc @ARGV && git push ); ",
24 "( cd /home/$USER/freeside2.3/$prefix; git commit -m $desc @ARGV && git push ) )"