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 <[email protected]> Acked-by: Eric Wong <[email protected]>
1 parent 5eec27e commit 9a8c92a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)