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

[PATCH] Document the "ignore objects" feature of git-pack-redundant

From
Lukas Sandström <lukass@etek.chalmers.se>
Date
Nov 18, 2005, 22:20 UTC
Message-ID
<437E539F.6080304@etek.chalmers.se>
In-Reply-To
<437E530E.1020803@etek.chalmers.se>
Signed-off-by: Lukas Sandström <lukass@etek.chalmers.se>
---
 Documentation/git-pack-redundant.txt |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

applies-to: 5053091ee7d1f4b32b18a21f4b255cf1141cf72c e417344dab21aca41fbc1f99d935ef033e53e3a8

diff --git a/Documentation/git-pack-redundant.txt b/Documentation/git-pack-redundant.txt
index 2e23cbc..9fe86ae 100644
--- a/Documentation/git-pack-redundant.txt
+++ b/Documentation/git-pack-redundant.txt
@@ -16,6 +16,14 @@ This program computes which packs in you
 are redundant. The output is suitable for piping to
 'xargs rm' if you are in the root of the repository.
 
+git-pack-redundant accepts a list of objects on standard input. Any objects
+given will be ignored when checking which packs are required. This makes the 
+following command useful when wanting to remove packs which contain unreachable
+objects.
+
+git-fsck-objects --full --unreachable | cut -d ' ' -f3 | \
+git-pack-redundant --all | xargs rm
+
 OPTIONS
 -------
 
---
0.99.9.GIT
Previous: Lukas SandströmNext: Lukas Sandström
Message 2 of 3 in “Make git-pack-redundant take a list of unimportant objs on stdin”
  1. Make git-pack-redundant take a list of unimportant objs on stdinLukas Sandström, Nov 18, 2005
  2. Document the "ignore objects" feature of git-pack-redundantLukas Sandström, Nov 18, 2005
  3. Lukas SandströmNov 21, 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.