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>
This commit is contained in:
Eric Wong 2007-12-13 08:27:34 -08:00 коммит произвёл Junio C Hamano
Родитель 5ff6aae895
Коммит 3157dd9e89
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -396,6 +396,7 @@ sub cmd_set_tree {
} }
$gs->set_tree($_) foreach @revs; $gs->set_tree($_) foreach @revs;
print "Done committing ",scalar @revs," revisions to SVN\n"; print "Done committing ",scalar @revs," revisions to SVN\n";
unlink $gs->{index};
} }
sub cmd_dcommit { sub cmd_dcommit {
@ -514,6 +515,7 @@ sub cmd_dcommit {
$last_rev = $cmt_rev; $last_rev = $cmt_rev;
} }
} }
unlink $gs->{index};
} }
sub cmd_find_rev { sub cmd_find_rev {
@ -1374,6 +1376,7 @@ sub fetch_all {
($base, $head) = parse_revision_argument($base, $head); ($base, $head) = parse_revision_argument($base, $head);
$ra->gs_fetch_loop_common($base, $head, \@gs, \@globs); $ra->gs_fetch_loop_common($base, $head, \@gs, \@globs);
unlink $_->{index} foreach @gs;
} }
sub read_all_remotes { sub read_all_remotes {