From: "Derrick Stolee via GitGitGadget" <gitgitgadget@gmail•com>
To: git@vger•kernel.org
Cc: vdye@github•com, gitster@pobox•com, me@ttaylorr•com,
mjcheetham@outlook•com, Derrick Stolee <derrickstolee@github•com>
Subject: [PATCH 0/2] [RFC] for-each-ref: add --count-matches mode
Date: Mon, 26 Jun 2023 15:09:55 +0000 [thread overview]
Message-ID: <pull.1548.git.1687792197.gitgitgadget@gmail.com> (raw)
I'm leaving this as an RFC for now because I can't decide if this new option
in git for-each-ref is good or if this needs an entirely new builtin. I'm
open to whatever people think is best, I'd just like a way to count matches
based on refspecs.
Thanks, -Stolee
Derrick Stolee (2):
for-each-ref: extract ref output loop
for-each-ref: add --count-matches option
Documentation/git-for-each-ref.txt | 5 ++
builtin/for-each-ref.c | 80 +++++++++++++++++++++---------
ref-filter.c | 47 ++++++++++++++++++
ref-filter.h | 7 +++
t/perf/p1501-ref-iteration.sh | 35 +++++++++++++
t/t6300-for-each-ref.sh | 28 +++++++++++
6 files changed, 179 insertions(+), 23 deletions(-)
create mode 100755 t/perf/p1501-ref-iteration.sh
base-commit: d7d8841f67f29e6ecbad85a11805c907d0f00d5d
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1548%2Fderrickstolee%2Ffor-each-ref-count-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1548/derrickstolee/for-each-ref-count-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/1548
--
gitgitgadget
next reply other threads:[~2023-06-26 15:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-26 15:09 Derrick Stolee via GitGitGadget [this message]
2023-06-26 15:09 ` [PATCH 1/2] for-each-ref: extract ref output loop Derrick Stolee via GitGitGadget
2023-06-26 15:09 ` [PATCH 2/2] for-each-ref: add --count-matches option Derrick Stolee via GitGitGadget
2023-06-26 16:14 ` Junio C Hamano
2023-06-27 7:30 ` Jeff King
2023-06-27 10:05 ` Phillip Wood
2023-06-27 18:22 ` Junio C Hamano
2023-06-27 19:59 ` Jeff King
2023-06-28 13:12 ` Phillip Wood
2023-06-28 17:08 ` Junio C Hamano
2023-07-11 14:48 ` René Scharfe
2023-07-10 16:51 ` Derrick Stolee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=pull.1548.git.1687792197.gitgitgadget@gmail.com \
--to=gitgitgadget@gmail$(echo .)com \
--cc=derrickstolee@github$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
--cc=gitster@pobox$(echo .)com \
--cc=me@ttaylorr$(echo .)com \
--cc=mjcheetham@outlook$(echo .)com \
--cc=vdye@github$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox