From: Junio C Hamano <gitster@pobox.com>
To: "Srujith A Poojary via GitGitGadget" <gitgitgadget@gmail.com>
Cc: git@vger.kernel.org, Okhuomon Ajayi <okhuomonajayi54@gmail.com>,
Srujith A Poojary <poojarysrujith@gmail.com>
Subject: Re: [PATCH v5] submodule: use the submodule repository to abbreviate commits
Date: Wed, 04 Nov 2026 06:38:40 -0800 [thread overview]
Message-ID: <xmqqwlqs3bm7.fsf@gitster.g> (raw)
In-Reply-To: <pull.2288.v5.git.1793763781129.gitgitgadget@gmail.com> (Srujith A. Poojary via GitGitGadget's message of "Wed, 04 Nov 2026 03:43:01 +0000")
"Srujith A Poojary via GitGitGadget" <gitgitgadget@gmail.com>
writes:
> From: Srujith A Poojary <poojarysrujith@gmail.com>
>
> The commit IDs shown in a submodule diff header belong to the
> submodule's object database. However, strbuf_add_unique_abbrev()
> uses the_repository, so it checks the superproject's object
> database when abbreviating those IDs.
>
> Use the submodule repository when it is available, and fall back
> to the repository from the diff options when it is not.
>
> The expected abbreviation for a submodule commit depends on the
> repository's hash algorithm. Use test_oid_cache to provide the
> expected value for each algorithm and remove the SHA1 prerequisite
> so this test runs with both SHA-1 and SHA-256.
"remove"? What are you talking about???
Above the three-dash line, decribe the change to those who read
_ONLY_ this iteration, not any earlier ones, because that is what
"git log" readers will see. Perhaps write it more like
As the expected abbreviation depends on the hash algorithm used,
the test uses the test_oid mechanism to switch the expectation
between SHA-1 and SHA-256 repositories.
or something, if you want to help readers who are not as familiar
with our system and its test infrastructure as you are understand
what you did.
> Signed-off-by: Srujith A Poojary <poojarysrujith@gmail.com>
> ---
Here below the three-dash line is a place for you to describe what
changed since the earlier rounds in your own words. Range-diff is
added to aid it, but not as a replacement.
Changes since v4 is to squash two pieces into a single patch, as far
as I can tell. Such a change is not visible in range-diff as #2
goes away, readers cannot tell where the additional material in #1
came from.
Overall it is looking good. Thanks.
prev parent reply other threads:[~2026-11-04 14:38 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-31 8:25 [PATCH] [Outreachy PATCH] t4041: use submodule repository for commit abbreviations Srujith A Poojary via GitGitGadget
2026-10-31 16:46 ` Okhuomon Ajayi
2026-10-31 19:08 ` Srujith Poojary
2026-10-31 18:57 ` [PATCH v2] Submodule: use the submodule repository to abbreviate commits Srujith A Poojary via GitGitGadget
2026-10-31 19:09 ` Okhuomon Ajayi
2026-10-31 19:37 ` Srujith Poojary
2026-10-31 19:24 ` [PATCH v3] submodule: " Srujith A Poojary via GitGitGadget
2026-11-01 21:45 ` Junio C Hamano
2026-11-02 19:40 ` [PATCH v4 0/2] [Outreachy PATCH] t4041: use submodule repository for commit abbreviations Srujith A Poojary via GitGitGadget
2026-11-02 19:40 ` [PATCH v4 1/2] submodule: use the submodule repository to abbreviate commits Srujith A Poojary via GitGitGadget
2026-11-02 19:49 ` Srujith Poojary
2026-11-02 19:40 ` [PATCH v4 2/2] t4041: test SHA-256 submodule abbreviations Srujith A Poojary via GitGitGadget
2026-11-03 17:31 ` Junio C Hamano
2026-11-04 3:58 ` Srujith Poojary
2026-11-03 17:27 ` [PATCH v4 0/2] [Outreachy PATCH] t4041: use submodule repository for commit abbreviations Junio C Hamano
2026-11-04 3:43 ` [PATCH v5] submodule: use the submodule repository to abbreviate commits Srujith A Poojary via GitGitGadget
2026-11-04 14:38 ` Junio C Hamano [this message]
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=xmqqwlqs3bm7.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=okhuomonajayi54@gmail.com \
--cc=poojarysrujith@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.