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

patches to support working without the object database

From
Bryan Larsen <bryan.larsen@gmail.com>
Date
Jul 8, 2005, 10:37 UTC
Message-ID
<42CE5764.9010405@gmail.com>

Sometimes you may wish to keep an audit trail of what changed, where, and by whom. You do not need to know the exact details of the change, and the files are so large that keeping an extra copy of the data in the object database cache is prohibitively expensive.

Git is (almost) ideally suited for this. There's very little out there that is faster than git-diff-cache.

The design of git also facilitates this. git-update-cache --cacheinfo allows the index to be updated without an object in the database, and operations can then be performed around the index. However, there are some things that are inconvenient and one show stopper.

I will separately mail a series of patches. The first will address the show stopper, the rest the inconveniences. Once applied, cg-init, cg-commit and cg-add will all take the "-N" option to update the index without moving the objects into the database. Operations that don't require the database such as cg-status and cg-log -f work fine and are very useful.

I don't expect the patches to be accepted as is.  One was designed to be 
minimally intrusive, but I suspect that there is a better way to do it: 
suggestions are welcome.  The controversial one switches 
git-update-cache --refresh to rely on the SHA1 being unique rather than 
doing a byte comparison against the (possibly missing) object database. 
  It could be made an option, but I think that's ugly.
All patches are against cogito-0.12.

cheers, Bryan

Next: Junio C Hamano
Message 1 of 4 in “patches to support working without the object database”
  1. Bryan LarsenJul 8, 2005
  2. Junio C HamanoJul 8, 2005
  3. Junio C HamanoJul 8, 2005
  4. Bryan LarsenJul 8, 2005

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.