Skip to content

rev-list and friends: --min-parents, --max-parents

Michael J Gruber git 3 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 6 repliesIn review
  2. v23 patches 7 repliesSuperseded
  3. v13 patches 19 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5t6009: use test_commit() from test-lib.sht/t6009-rev-list-parent.sh+4 -110 replies
2/5revision.c: introduce --min-parents and --max-parentsbuiltin/log.c builtin/rev-list.c builtin/rev-parse.c +2 more+24 -100 replies
3/5squash! revision.c: introduce --min-parents and --max-parentsbuiltin/rev-list.c builtin/rev-parse.c revision.c+8 -00 replies
4/5rev-list --min-parents,--max-parents: doc, test and completionDocumentation/git-rev-list.txt Documentation/rev-list-options.txt contrib/completion/git-completion.bash +1 more+121 -30 replies
5/5fixup! rev-list --min-parents,--max-parents: doc, test and completionDocumentation/git-rev-list.txt Documentation/rev-list-options.txt contrib/completion/git-completion.bash +1 more+14 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCHv3 0/5]rev-list and friends: --min-parents, --max-parents

Compared to what is currently in pu (which is v2+eps), v3 has:

1/3 -> 1/5 unchanged

2/3 -> 2/5 unchanged

3/5 is !squash for 2/5 and introduces --no-min-parents and --no-max-parents as natural ways to reset the limits

3/3 -> 4/5 with a fix to the notation in documentation (spell out =<number>) and an additional dodecapus test

5/5 is !fixup for 4/5 and adds test, doc and completion for --no-min-parents and --no-max-parents

Junio, please let me/us know whether sending an amended series in this way (which I've seen before) is actually convenient for you or not. !squash commits require a message edit, for example. OTOH, I don't know any (other?) good inter diff solution.

Thanks for everyone's input which went into this (Junio, Jeff, Jonathan).

Michael J Gruber (5):
t6009: use test_commit() from test-lib.sh
revision.c: introduce --min-parents and --max-parents squash! revision.c: introduce --min-parents and --max-parents rev-list --min-parents,--max-parents: doc, test and completion fixup! rev-list --min-parents,--max-parents: doc, test and completion

 Documentation/git-rev-list.txt         |    4 +
 Documentation/rev-list-options.txt     |   19 +++++-
 builtin/log.c                          |    2 +-
 builtin/rev-list.c                     |    4 +
 builtin/rev-parse.c                    |    4 +
 contrib/completion/git-completion.bash |    2 +
 revision.c                             |   28 ++++++--
 revision.h                             |    4 +-
 t/t6009-rev-list-parent.sh             |  118 +++++++++++++++++++++++++++++---
 9 files changed, 163 insertions(+), 22 deletions(-)
Signature · 1 line
1.7.4.1.511.g72e46