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

using git without blobs in the object database

From
Bryan Larsen <bryan.larsen@gmail.com>
Date
Jul 7, 2005, 12:10 UTC
Message-ID
<42CD1BBD.8070306@gmail.com>

Use Case: A large set of large binary files, geographically distributed. Each location has some unique files, some identical files and some slightly modified files.

I want to use git to tell me what changed and when. But I cannot afford to have it store the blobs in the object database, nor do I need to; knowing the signature of previous objects is good enough.

It seems to me that most operations should work without these objects, and that some people do so. For instance, git-update-cache has a --cacheinfo option that facilitates this operation.

But not all commands work so well. For instance, git-write-tree will fail if --cacheinfo was used to add a file. This failure is caused by a call to check_valid_sha1(). It appears that this check is not strictly necessary, just very useful for normal operation.

Would a patch that added a flag "--disable-sha1-check" to git-write-tree be accepted? I hope that's all I need to add, but I haven't completed my evaluation yet.

thanks, Bryan

Message 1 of 1 in “using git without blobs in the object database”
  1. Bryan LarsenJul 7, 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.