Skip to content

Commit

Permalink
git-svn: remove optimized commit stuff for set-tree
Browse files Browse the repository at this point in the history
I may resurrect it for dcommit at some point, but nobody really
uses set-tree anymore and I don't feel like introducing more
complexity into the code at this point.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
  • Loading branch information
Eric Wong committed Feb 23, 2007
1 parent 74a8122 commit 490f49e
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions git-svn.perl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ BEGIN

my ($SVN);

my $_optimize_commits = 1 unless $ENV{GIT_SVN_NO_OPTIMIZE_COMMITS};
$sha1 = qr/[a-f\d]{40}/;
$sha1_short = qr/[a-f\d]{4,40}/;
my ($_stdin, $_help, $_edit,
Expand Down Expand Up @@ -1384,15 +1383,8 @@ sub fetch {

sub set_tree_cb {
my ($self, $log_entry, $tree, $rev, $date, $author) = @_;
# TODO: enable and test optimized commits:
if (0 && $rev == ($self->{last_rev} + 1)) {
$log_entry->{revision} = $rev;
$log_entry->{author} = $author;
$self->do_git_commit($log_entry, "$rev=$tree");
} else {
$self->{inject_parents} = { $rev => $tree };
$self->fetch(undef, undef);
}
$self->{inject_parents} = { $rev => $tree };
$self->fetch(undef, undef);
}

sub set_tree {
Expand Down

0 comments on commit 490f49e

Please sign in to comment.