git svn: find-rev allows short switches for near matches
Allow -B and -A to act as short aliases for --before and --after options respectively. This reduces typing and hopefully allows reuse of muscle memory for grep(1) users. Signed-off-by: Eric Wong <normalperson@yhbt.net>
Eric Wong committed
Sep 7, 2014 at 08:35 UTC
a831a3fd86bb7280020d650d52cce4af9e161c46
2 files changed
+4
-2
Documentation/git-svn.txt
+2
@@ -386,11 +386,13 @@ Any other arguments are passed directly to 'git log'
386
tree-ish to specify which branch should be searched). When given a
387
tree-ish, returns the corresponding SVN revision number.
388
+
389
+-B;;
390
--before;;
391
Don't require an exact match if given an SVN revision, instead find
392
the commit corresponding to the state of the SVN repository (on the
393
current branch) at the specified revision.
394
+
395
+-A;;
396
--after;;
397
Don't require an exact match if given an SVN revision; if there is
398
not an exact match return the closest match searching forward in the
git-svn.perl
+2
-2
@@ -260,8 +260,8 @@ my %cmd = (
260
} ],
261
'find-rev' => [ \&cmd_find_rev,
262
"Translate between SVN revision numbers and tree-ish",
263
- { 'before' => \$_before,
264
- 'after' => \$_after } ],
263
+ { 'B|before' => \$_before,
264
+ 'A|after' => \$_after } ],
265
'rebase' => [ \&cmd_rebase, "Fetch and rebase your working directory",
266
{ 'merge|m|M' => \$_merge,
267
'verbose|v' => \$_verbose,