@matheusbsbs / matheus-bagliano / commits / 3157dd9e89
Fork 0

git-svn: unlink internal index files after operations

Being git, we can generate these very quickly on the fly as needed, so there's no point in wasting space for these things for large projects. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Eric Wong committed Dec 13, 2007 at 08:27 UTC 3157dd9e89a71e80673d0bc21b5c0630f3b1fe68
1 file changed +3
git-svn.perl
+3
@@ -396,6 +396,7 @@ sub cmd_set_tree {
396 }
397 $gs->set_tree($_) foreach @revs;
398 print "Done committing ",scalar @revs," revisions to SVN\n";
399 + unlink $gs->{index};
400 }
401
402 sub cmd_dcommit {
@@ -514,6 +515,7 @@ sub cmd_dcommit {
515 $last_rev = $cmt_rev;
516 }
517 }
518 + unlink $gs->{index};
519 }
520
521 sub cmd_find_rev {
@@ -1374,6 +1376,7 @@ sub fetch_all {
1376
1377 ($base, $head) = parse_revision_argument($base, $head);
1378 $ra->gs_fetch_loop_common($base, $head, \@gs, \@globs);
1379 + unlink $_->{index} foreach @gs;
1380 }
1381
1382 sub read_all_remotes {