summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-09-15 05:37:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-09-15 05:37:43 (GMT)
commit23d23385b3e4e1d05e31b5b38e8aaa7f9bdd17ce (patch)
tree922af22d93311d3f7c1a8a42614c0c819124032d /git-svn.perl
parentd225ae59c9102f2769c55749f80f7a94a92713e4 (diff)
parent4dbfe2e9bdfdde2d3257194573cee0d41471592b (diff)
downloadgit-23d23385b3e4e1d05e31b5b38e8aaa7f9bdd17ce.zip
git-23d23385b3e4e1d05e31b5b38e8aaa7f9bdd17ce.tar.gz
git-23d23385b3e4e1d05e31b5b38e8aaa7f9bdd17ce.tar.bz2
Merge branch 'lh/svn-first-parent'
* lh/svn-first-parent: git-svn: always use --first-parent git-svn: add support for --first-parent
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-xgit-svn.perl10
1 files changed, 6 insertions, 4 deletions
diff --git a/git-svn.perl b/git-svn.perl
index f818160..288d32c 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -124,7 +124,8 @@ my %cmd = (
"Set an SVN repository to a git tree-ish",
{ 'stdin|' => \$_stdin, %cmt_opts, %fc_opts, } ],
'show-ignore' => [ \&cmd_show_ignore, "Show svn:ignore listings",
- { 'revision|r=i' => \$_revision } ],
+ { 'revision|r=i' => \$_revision
+ } ],
'multi-fetch' => [ \&cmd_multi_fetch,
"Deprecated alias for $0 fetch --all",
{ 'revision|r=s' => \$_revision, %fc_opts } ],
@@ -144,10 +145,10 @@ my %cmd = (
'non-recursive' => \$Git::SVN::Log::non_recursive,
'authors-file|A=s' => \$_authors,
'color' => \$Git::SVN::Log::color,
- 'pager=s' => \$Git::SVN::Log::pager,
+ 'pager=s' => \$Git::SVN::Log::pager
} ],
'find-rev' => [ \&cmd_find_rev, "Translate between SVN revision numbers and tree-ish",
- { } ],
+ {} ],
'rebase' => [ \&cmd_rebase, "Fetch and rebase your working directory",
{ 'merge|m|M' => \$_merge,
'verbose|v' => \$_verbose,
@@ -811,7 +812,8 @@ sub cmt_metadata {
sub working_head_info {
my ($head, $refs) = @_;
- my ($fh, $ctx) = command_output_pipe('log', '--no-color', $head);
+ my @args = ('log', '--no-color', '--first-parent');
+ my ($fh, $ctx) = command_output_pipe(@args, $head);
my $hash;
my %max;
while (<$fh>) {