Skip to content

Commit 490f49e

Browse files
author
Eric Wong
committed
git-svn: remove optimized commit stuff for set-tree
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>
1 parent 74a8122 commit 490f49e

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

git-svn.perl

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ BEGIN
4848

4949
my ($SVN);
5050

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

13851384
sub set_tree_cb {
13861385
my ($self, $log_entry, $tree, $rev, $date, $author) = @_;
1387-
# TODO: enable and test optimized commits:
1388-
if (0 && $rev == ($self->{last_rev} + 1)) {
1389-
$log_entry->{revision} = $rev;
1390-
$log_entry->{author} = $author;
1391-
$self->do_git_commit($log_entry, "$rev=$tree");
1392-
} else {
1393-
$self->{inject_parents} = { $rev => $tree };
1394-
$self->fetch(undef, undef);
1395-
}
1386+
$self->{inject_parents} = { $rev => $tree };
1387+
$self->fetch(undef, undef);
13961388
}
13971389

13981390
sub set_tree {

0 commit comments

Comments
 (0)