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

Re: Add --ignore-missing to git-pack-objects?

From
Jeff King <peff@peff.net>
Date
Aug 20, 2017, 10:16 UTC
Message-ID
<20170820101632.irj22dighcrrcvlv@sigill.intra.peff.net>
In-Reply-To
<7d7a5801-1418-cc03-6d88-c148a38fccec@onlinehome.de>
On Tue, Aug 15, 2017 at 12:51:01AM +0200, ch wrote:
Show 10 quoted lines
> Is it possible to add an option akin to git-rev-list's '--ignore-missing' to
> git-pack-objects?
> 
> I use git bundles to (incrementally) backup my repositories. My script inspects
> all bundles in the backup and passes their contained refs as excludes to
> git-pack-objects to build the pack for the new bundle. This works fine as long
> as none of these refs have been garbage-collected in the source repository.
> Something like '--ignore-missing' would be really handy here to ask
> git-pack-objects to simply ignore any of the passed revs that are not present
> (anymore).

So if I understand correctly, you are only using these for the negative side of the traversal? rev-list should ignore missing objects in such a case even without --ignore-missing, and I think it may simply be a bug if pack-objects is not.

Do you have a simple reproduction recipe?
-Peff
Previous: chNext: ch
Message 2 of 3 in “Add --ignore-missing to git-pack-objects?”
  1. chAug 14, 2017
  2. Jeff KingAug 20, 2017
  3. chAug 20, 2017

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.