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

[PATCH 0/3] rev-list: allow missing tips with --missing

From
Christian Couder <christian.couder@gmail.com>
Date
Feb 1, 2024, 11:58 UTC
Message-ID
<20240201115809.1177064-1-christian.couder@gmail.com>

A recent patch series, kn/rev-list-missing-fix [1] extended the `--missing` option in git-rev-list(1) to support commit objects.

Unfortunately, git-rev-list(1) with `--missing` set to something other than 'error' still fails, usually with a "fatal: bad object <oid>" error message, when a missing object is passed as an argument.

This patch series removes this limitation and when using `--missing=print` allows all missing objects to be printed including those that are passed as arguments.

Patches 1/3 (revision: clarify a 'return NULL' in get_reference()) and 2/3 (t6022: fix 'even though' typo in comment) are very small preparatory cleanups.

Patch 3/3 (rev-list: add --allow-missing-tips to be used with --missing=...) introduces the new `--allow-missing-tips` option that allows git-rev-list(1) with `--missing` to not fail when one of the tips it is passed is missing.

[1] https://lore.kernel.org/git/20231026101109.43110-1-karthik.188@gmail.com/
Christian Couder (3):
  revision: clarify a 'return NULL' in get_reference()
  t6022: fix 'even though' typo in comment
  rev-list: add --allow-missing-tips to be used with --missing=...
 builtin/rev-list.c          | 24 ++++++++++++++++-
 revision.c                  | 11 +++++---
 revision.h                  |  8 ++++++
 t/t6022-rev-list-missing.sh | 53 ++++++++++++++++++++++++++++++++++++-
 4 files changed, 90 insertions(+), 6 deletions(-)
-- 
2.43.0.496.gd667eb0d7d.dirty
Next: Christian Couder
Message 1 of 20 in “rev-list: allow missing tips with --missing”
  1. 0/3 rev-list: allow missing tips with --missingChristian Couder, Feb 1, 2024
  2. 1/3 revision: clarify a 'return NULL' in get_reference()Christian Couder, Feb 1, 2024
  3. Eric SunshineFeb 1, 2024
  4. Christian CouderFeb 1, 2024
  5. 2/3 t6022: fix 'even though' typo in commentChristian Couder, Feb 1, 2024
  6. 3/3 rev-list: add --allow-missing-tips to be used with --missing=...Christian Couder, Feb 1, 2024
  7. Junio C HamanoFeb 1, 2024
  8. Christian CouderFeb 2, 2024
  9. Junio C HamanoFeb 2, 2024
  10. Junio C HamanoFeb 1, 2024
  11. Christian CouderFeb 2, 2024
  12. Junio C HamanoFeb 2, 2024
  13. Linus ArverFeb 7, 2024
  14. Junio C HamanoFeb 7, 2024
  15. Christian CouderFeb 7, 2024
  16. Linus ArverFeb 7, 2024
  17. Christian CouderFeb 7, 2024
  18. Linus ArverFeb 7, 2024
  19. Christian CouderFeb 8, 2024
  20. Linus ArverFeb 8, 2024

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.