git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH 1/2] Add 'git svn help [cmd]' which works outside a repo.
@ 2009-05-31  1:17 Ben Jackson
  2009-05-31  1:17 ` [PATCH 2/2] Add 'git svn reset' to unwind 'git svn fetch' Ben Jackson
  2009-06-04  2:48 ` [PATCH 1/2] Add 'git svn help [cmd]' which works outside a repo Eric Wong
  0 siblings, 2 replies; 5+ messages in thread
From: Ben Jackson @ 2009-05-31  1:17 UTC (permalink / raw)
  To: git; +Cc: gitster, normalperson, Ben Jackson

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>
---

This was just a minor nit I noticed while working on the 'git-svn reset'
patch.

 git-svn.perl |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/git-svn.perl b/git-svn.perl
index a70c7d7..20bf828 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -219,6 +219,9 @@ for (my $i = 0; $i < @ARGV; $i++) {
 		$cmd = $ARGV[$i];
 		splice @ARGV, $i, 1;
 		last;
+	} elsif ($ARGV[$i] eq 'help') {
+		$cmd = $ARGV[$i+1];
+		usage(0);
 	}
 };
 
-- 
1.6.3.GIT

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-06-04  2:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-31  1:17 [PATCH 1/2] Add 'git svn help [cmd]' which works outside a repo Ben Jackson
2009-05-31  1:17 ` [PATCH 2/2] Add 'git svn reset' to unwind 'git svn fetch' Ben Jackson
2009-06-01 17:49   ` Ben Jackson
2009-06-04  0:24     ` Eric Wong
2009-06-04  2:48 ` [PATCH 1/2] Add 'git svn help [cmd]' which works outside a repo Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).