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

Re: git-svn: .git/svn disk usage

From
Karl Hasselström <kha@treskal.com>
Date
Dec 4, 2007, 08:29 UTC
Message-ID
<20071204082940.GA24630@diana.vm.bytemark.co.uk>
In-Reply-To
<65dd6fd50712030935p242895fvc2e4576448868403@mail.gmail.com>
On 2007-12-03 09:35:22 -0800, Ollie Wild wrote:
Show 7 quoted lines
> I'm seeing the following breakdown:
>
> 4.3G index
> 77M  unhandled.log
> 5.5G .rev_db.138bc75d-0d04-0410-961f-82ee72b054a4
>
> What exactly are the index and .rev_db files used for?

The indexes are just normal git index files, one for each branch and tag. They're used to speed up importing new commits to the branch or tag.

My guess is that the performance impact of deleting them between git-svn runs would be very small, since recreating an index is cheap, and we'd still get the speed benefit when importing several revisions to a branch in the same run. And it'd be a very small code change too, I think.

If nothing else, it's insane to keep the index for the tags. :-)
-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Ollie WildNext: David Voit
Message 6 of 10 in “git-svn: .git/svn disk usage”
  1. Ollie WildDec 3, 2007
  2. Pascal ObryDec 3, 2007
  3. David BrownDec 3, 2007
  4. Kelvie WongDec 3, 2007
  5. Ollie WildDec 3, 2007
  6. Karl HasselströmDec 4, 2007
  7. David VoitDec 3, 2007
  8. Eric WongDec 5, 2007
  9. Steven GrimmDec 5, 2007
  10. Eric WongDec 6, 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.