- print $client git( 'commit', '-m', $message,
- ( -e "$hostname/$path" ? "$hostname/$path" : $hostname )
- );
- } elsif ( $command =~ m{(diff|status|log)} ) {
- $command .= ' --summary' if $command eq 'log';
+ $message =~ s/'/\\'/g;
+ $user =~ s/\/$//;
+ print $client git( "commit -m '$message' --author '$user <$hostname>' $backup_path" );
+ } elsif ( $command =~ m{(diff|status|log|ch)} ) {
+ $command .= ' --stat' if $command eq 'log';
+ $command = 'log --patch-with-stat' if $command =~ m/^ch/;