Merge branch 'lh/svn-first-parent'

* lh/svn-first-parent:
  git-svn: always use --first-parent
  git-svn: add support for --first-parent
This commit is contained in:
Junio C Hamano 2007-09-14 22:37:43 -07:00
Родитель d225ae59c9 4dbfe2e9bd
Коммит 23d23385b3
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -124,7 +124,8 @@ my %cmd = (
"Set an SVN repository to a git tree-ish", "Set an SVN repository to a git tree-ish",
{ 'stdin|' => \$_stdin, %cmt_opts, %fc_opts, } ], { 'stdin|' => \$_stdin, %cmt_opts, %fc_opts, } ],
'show-ignore' => [ \&cmd_show_ignore, "Show svn:ignore listings", 'show-ignore' => [ \&cmd_show_ignore, "Show svn:ignore listings",
{ 'revision|r=i' => \$_revision } ], { 'revision|r=i' => \$_revision
} ],
'multi-fetch' => [ \&cmd_multi_fetch, 'multi-fetch' => [ \&cmd_multi_fetch,
"Deprecated alias for $0 fetch --all", "Deprecated alias for $0 fetch --all",
{ 'revision|r=s' => \$_revision, %fc_opts } ], { 'revision|r=s' => \$_revision, %fc_opts } ],
@ -144,10 +145,10 @@ my %cmd = (
'non-recursive' => \$Git::SVN::Log::non_recursive, 'non-recursive' => \$Git::SVN::Log::non_recursive,
'authors-file|A=s' => \$_authors, 'authors-file|A=s' => \$_authors,
'color' => \$Git::SVN::Log::color, '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", 'find-rev' => [ \&cmd_find_rev, "Translate between SVN revision numbers and tree-ish",
{ } ], {} ],
'rebase' => [ \&cmd_rebase, "Fetch and rebase your working directory", 'rebase' => [ \&cmd_rebase, "Fetch and rebase your working directory",
{ 'merge|m|M' => \$_merge, { 'merge|m|M' => \$_merge,
'verbose|v' => \$_verbose, 'verbose|v' => \$_verbose,
@ -811,7 +812,8 @@ sub cmt_metadata {
sub working_head_info { sub working_head_info {
my ($head, $refs) = @_; 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 $hash;
my %max; my %max;
while (<$fh>) { while (<$fh>) {