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

Re: Multiblobs

From
Sergio Callegari <sergio.callegari@gmail.com>
Date
May 10, 2010, 13:58 UTC
Message-ID
<4BE810F2.3080107@gmail.com>
In-Reply-To
<20100510063618.GD13340@coredump.intra.peff.net>
On 10/05/2010 08:36, Jeff King wrote:
> Sure. And for those cases, I think clean/smudge filters are perhaps
> already doing the job.
>
>    

As a matter of fact, my idea was exactly to think of a multiblob as a git tree (maybe plus a signature).

With this, one can set up a "multiclean" filter, triggered by a filename pattern as for a normal filter or by the invocation of "file" to look at inner magic.

When this filter is invoked it should take the file to be cleaned as the stdin and output a tree at the output, while (as a side effect) populating the git storage by the normal blobs pointed to by the tree.

In a complementary fashion, the multismudge filter should receive the "multiblob" tree on stdin, and output on stdout the smudged file, inspecting the blobs pointed to by the tree to do the work.

This would require having trees as tree entries, and (I guess) also some update to the git package machinery, but apart from that should fit well with the current clean/smudge approach, nor significantly alter the git model.

Sergio
Previous: Jeff King
Message 21 of 21 in “Multiblobs”
  1. Sergio CallegariApr 28, 2010
  2. Avery PennarunApr 28, 2010
  3. Sergio CallegariApr 28, 2010
  4. Avery PennarunApr 28, 2010
  5. Michael WittenApr 28, 2010
  6. SergioApr 28, 2010
  7. Avery PennarunApr 29, 2010
  8. Peter KreftingApr 29, 2010
  9. Avery PennarunApr 29, 2010
  10. Peter KreftingApr 30, 2010
  11. Avery PennarunApr 30, 2010
  12. Hervé CauwelierApr 30, 2010
  13. Avery PennarunApr 30, 2010
  14. Michael WittenApr 30, 2010
  15. Hervé CauwelierApr 30, 2010
  16. Geert BoschApr 28, 2010
  17. Mike HommeyApr 29, 2010
  18. Jeff KingMay 6, 2010
  19. Sergio CallegariMay 6, 2010
  20. Jeff KingMay 10, 2010
  21. Sergio CallegariMay 10, 2010

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.