Skip to content

Commit 9a8c92a

Browse files
bjjEric Wong
authored andcommitted
Add 'git svn help [cmd]' which works outside a repo.
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>
1 parent 5eec27e commit 9a8c92a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

git-svn.perl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ BEGIN
219219
$cmd = $ARGV[$i];
220220
splice @ARGV, $i, 1;
221221
last;
222+
} elsif ($ARGV[$i] eq 'help') {
223+
$cmd = $ARGV[$i+1];
224+
usage(0);
222225
}
223226
};
224227

0 commit comments

Comments
 (0)