git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-svn: unlink internal index files after operations

From
EWEric Wong <normalperson@yhbt.net>
Date
Dec 13, 2007, 16:27 UTC
Message-ID
<20071213162734.GA18433@soma>

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>
---
 git-svn.perl |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl
index 54d7844..fde39e2 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -396,6 +396,7 @@ sub cmd_set_tree {
 	}
 	$gs->set_tree($_) foreach @revs;
 	print "Done committing ",scalar @revs," revisions to SVN\n";
+	unlink $gs->{index};
 }
 
 sub cmd_dcommit {
@@ -514,6 +515,7 @@ sub cmd_dcommit {
 			$last_rev = $cmt_rev;
 		}
 	}
+	unlink $gs->{index};
 }
 
 sub cmd_find_rev {
@@ -1374,6 +1376,7 @@ sub fetch_all {
 
 	($base, $head) = parse_revision_argument($base, $head);
 	$ra->gs_fetch_loop_common($base, $head, \@gs, \@globs);
+	unlink $_->{index} foreach @gs;
 }
 
 sub read_all_remotes {
-- 
Eric Wong
Next: Karl Hasselström
Message 1 of 3 in “git-svn: unlink internal index files after operations”
  1. git-svn: unlink internal index files after operationsEric Wong, Dec 13, 2007
  2. Karl HasselströmDec 13, 2007
  3. Eric WongDec 14, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.