this allows you to diff files between two machines without adding
them to bak first (which also worked before, but all required
directories needed to be present in bak allready)
$command = 'log --patch-with-stat' if $command =~ m/^ch/;
pull_changes( $hostname ) if $command eq 'diff';
if ( $on_host ) {
+ mkpath "$hostname/$dir" unless -e "$hostname/$dir";
rsync( '-avv', "root\@$hostname:$path", "$hostname/$path" );
rsync( '-avv', "root\@$on_host:$path", "$on_host/$path" );
open(my $diff, '-|', "diff -Nuw $hostname$path $on_host$path");