[PATCH 25/25] git-mv: Clean-up usage message.
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
---
git-mv.perl | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
a213190dc8f25c133046a35593e027cb748f662b
diff --git a/git-mv.perl b/git-mv.perl
index 83dc7e4..db6699d 100755
--- a/git-mv.perl
+++ b/git-mv.perl
@@ -12,13 +12,21 @@ use strict;
use Getopt::Std;
sub usage() {
- print <<EOT;
+ print STDERR <<EOT;
$0 [-f] [-n] <source> <destination>
$0 [-f] [-n] [-k] <source> ... <destination directory>
EOT
exit(1);
}
+sub HELP_MESSAGE() {
+ usage;
+}
+
+sub VERSION_MESSAGE() {
+ usage;
+}
+
my $GIT_DIR = `git rev-parse --git-dir`;
exit 1 if $?; # rev-parse would have given "not a git dir" message.
chomp($GIT_DIR);
--
0.99.9.GIT