Skip to content

Commit

Permalink
Add 'git svn help [cmd]' which works outside a repo.
Browse files Browse the repository at this point in the history
Previously there was no explicit 'help' command, but 'git svn help'
still printed the usage message (as an invalid command), provided you
got past the initialization steps that required a valid repo.

Signed-off-by: Ben Jackson <ben@ben.com>
Acked-by: Eric Wong <normalperson@yhbt.net>
  • Loading branch information
Ben Jackson authored and Eric Wong committed Jun 25, 2009
1 parent 5eec27e commit 9a8c92a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions git-svn.perl
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ BEGIN
$cmd = $ARGV[$i];
splice @ARGV, $i, 1;
last;
} elsif ($ARGV[$i] eq 'help') {
$cmd = $ARGV[$i+1];
usage(0);
}
};

Expand Down

0 comments on commit 9a8c92a

Please sign in to comment.