From: Joey Hess Date: Wed, 24 Oct 2007 22:18:10 +0000 (-0400) Subject: * Improve "in subdir" message. X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/cdb465e61f783be39b53f818636e907a47585096?ds=inline;hp=-c * Improve "in subdir" message. --- cdb465e61f783be39b53f818636e907a47585096 diff --git a/debian/changelog b/debian/changelog index 3158a89..f45e80c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +mr (0.8) UNRELEASED; urgency=low + + * Improve "in subdir" message. + + -- Joey Hess Wed, 24 Oct 2007 18:17:45 -0400 + mr (0.7) unstable; urgency=low * Fix inverted tests in tags command. (madduck) diff --git a/mr b/mr index 0a50a33..3dbd7e9 100755 --- a/mr +++ b/mr @@ -563,7 +563,9 @@ sub action { #{{{ print "mr $action: $topdir$subdir\n"; } else { - print "mr $action: $topdir$subdir (in subdir $directory)\n"; + my $s=$directory; + $s=~s/^\Q$topdir$subdir\E\/?//; + print "mr $action: $topdir$subdir (in subdir $s)\n"; } my $command="set -e; ".$lib. "my_action(){ $config{$topdir}{$subdir}{$action}\n }; my_action ".