summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2007-02-10 21:58:33 (GMT)
committerEric Wong <normalperson@yhbt.net>2007-02-23 08:57:12 (GMT)
commit490f49ea5899b7aacfb82c0ed5639d722a56704a (patch)
tree1e54de17b8bd7dfcec96edcdd6ea094b327dc1cd /git-svn.perl
parent74a81227f95b52b1c3f7ac7ba84ac1a6e1708995 (diff)
downloadgit-490f49ea5899b7aacfb82c0ed5639d722a56704a.zip
git-490f49ea5899b7aacfb82c0ed5639d722a56704a.tar.gz
git-490f49ea5899b7aacfb82c0ed5639d722a56704a.tar.bz2
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>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-xgit-svn.perl12
1 files changed, 2 insertions, 10 deletions
diff --git a/git-svn.perl b/git-svn.perl
index 50b7dcf..7e1a655 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -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,
@@ -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 {