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

[PATCH v3 0/1] rev-list: add --missing-only option to filter output

From
Siddharth Asthana <siddharthasthana31@gmail.com>
Date
Sep 3, 2026, 20:45 UTC
Message-ID
<20260903204551.65592-1-siddharthasthana31@gmail.com>
In-Reply-To
<20260901185100.33948-1-siddharthasthana31@gmail.com>
Hi,

v2 added --missing-only as a filter next to --missing=print / --missing=print-info. Junio asked how the missing list is used, so this v3 only updates the log message.

It is a one-shot walk. Gitaly uses --missing=print when packing a quarantine and treats '?' lines as objects that must already be in the main repo. Tests do the same (is this blob still missing). --missing-only is that list without the prefix, not a fetch loop.

Based on 1630431f32 (The 21st batch, 2026-08-31).
Changes from v2:
- Stronger motivation in the commit message (Junio).
- Link to v2:
  https://lore.kernel.org/git/20260901185100.33948-1-siddharthasthana31@gmail.com/

Thanks, Siddharth

---
Siddharth Asthana (1):
  rev-list: add --missing-only option to filter output
 Documentation/rev-list-options.adoc | 13 ++++++++
 builtin/rev-list.c                  | 42 ++++++++++++++++++++++---
 t/t6022-rev-list-missing.sh         | 49 +++++++++++++++++++++++++++++
 3 files changed, 99 insertions(+), 5 deletions(-)
Range-diff versus v2:
1:  3c89e6bc38 ! 1:  c751ff41a4 rev-list: add --missing-only option to filter output
    @@ Commit message
     
           git rev-list --objects --all --missing=print | perl -ne 'print if s/^[?]//'
     
    +    This is for a one-shot walk, not a fetch loop. Callers already have
    +    --missing=print and strip the leading '?'. Gitaly does that when packing
    +    a quarantine: '?' lines are objects that must already exist in the main
    +    repo. Tests do the same (is this blob still missing). --missing-only is
    +    just that list without the prefix.
    +
         Add --missing-only. Use it with --missing=print or --missing=print-info
         to print only missing objects. --missing= still picks the format;
         --missing-only only filters. The leading '?' is omitted. With
base-commit: 1630431f326e15fcde608827b5ff38422528eb59
Previous: Junio C HamanoNext: Siddharth Asthana
Message 17 of 18 in “rev-list: add --missing=print-only mode”
  1. 0/1 rev-list: add --missing=print-only modeSiddharth Asthana, Apr 19, 2026
  2. 1/1 rev-list: add --missing=print-only modeSiddharth Asthana, Apr 19, 2026
  3. Derrick StoleeApr 19, 2026
  4. Siddharth AsthanaApr 20, 2026
  5. Derrick StoleeApr 20, 2026
  6. Patrick SteinhardtApr 20, 2026
  7. Phillip WoodApr 20, 2026
  8. Patrick SteinhardtApr 20, 2026
  9. Siddharth AsthanaApr 20, 2026
  10. Kristoffer HaugsbakkApr 20, 2026
  11. Siddharth AsthanaApr 20, 2026
  12. 0/1 rev-list: add --missing-only option to filter outputSiddharth Asthana, Sep 1, 2026
  13. 1/1 rev-list: add --missing-only option to filter outputSiddharth Asthana, Sep 1, 2026
  14. Junio C HamanoSep 1, 2026
  15. Siddharth AsthanaSep 1, 2026
  16. Junio C HamanoSep 2, 2026
  17. 0/1 rev-list: add --missing-only option to filter outputSiddharth Asthana, Sep 3, 2026
  18. 1/1 rev-list: add --missing-only option to filter outputSiddharth Asthana, Sep 3, 2026

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.