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

Re: Is there some script to find un-delta-able objects?

From
Jeff King <peff@peff.net>
Date
Oct 5, 2018, 16:19 UTC
Message-ID
<20181005161943.GA8816@sigill.intra.peff.net>
In-Reply-To
<87d0soh3v8.fsf@evledraar.gmail.com>
On Fri, Oct 05, 2018 at 04:20:27PM +0200, Ævar Arnfjörð Bjarmason wrote:
Show 6 quoted lines
> I.e. something to generate the .gitattributes file using this format:
> 
> https://git-scm.com/docs/gitattributes#_packing_objects
> 
> Some stuff is obvious, like "*.gpg binary -delta", but I'm wondering if
> there's some repo scanner utility to spew this out for a given repo.

I'm not sure what you mean by "un-delta-able" objects. Do you mean ones where we're not likely to find a delta? Or ones where Git will not try to look for a delta?

If the latter, I think the only rules are the "-delta" attribute and the object size. You should be able to use git-check-attr and "git-cat-file" to get that info.

If the former, I don't know how you would know. We can only report on what isn't a delta _yet_.

-Peff
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 2 of 5 in “Is there some script to find un-delta-able objects?”
  1. Ævar Arnfjörð BjarmasonOct 5, 2018
  2. Jeff KingOct 5, 2018
  3. Ævar Arnfjörð BjarmasonOct 5, 2018
  4. Jeff KingOct 5, 2018
  5. Junio C HamanoOct 5, 2018

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.