From: Bagas Sanjaya <bagasdotme@gmail.com>
To: Jonathan Tan <jonathantanmy@google.com>, git@vger.kernel.org
Cc: stolee@gmail.com
Subject: Re: [PATCH] commit-reach: do not parse and iterate minima
Date: Thu, 24 Mar 2022 19:05:11 +0700 [thread overview]
Message-ID: <8f7ed9c5-9be6-55b4-f95c-40bf11d9e9ed@gmail.com> (raw)
In-Reply-To: <20220323210803.1130790-1-jonathantanmy@google.com>
On 24/03/22 04.08, Jonathan Tan wrote:
> However, this is not the case when fetching with --update-shallow. In
> post_assign_shallow() in shallow.c, a revision walk is done that also
> parses commits at the shallow boundary before updating the shallow
> information (and hence, the graft information). (This revision walk
> needs to be done before the update because the nature of the update
> depends on the outcome of the revision walk.) If we were to
> revision-walk such a commit (at the shallow boundary), we would end up
> trying and failing to parse its parents because its list of parents is
> not empty (since it was parsed before there was any graft information
> telling us to conceal its parents). This revision walk will happen if
> the client has submodules, as it will revision-walk the fetched commits
> to check for new submodules, triggering this bug.
>
What about fetching with --deepen?
Will "unintended" unshallowing with --update-shallow possibly happen
if --update-shallow is used, as opposed to --depth/--deepen?
--
An old man doll... just what I always wanted! - Clara
next prev parent reply other threads:[~2022-03-24 12:05 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-23 21:08 [PATCH] commit-reach: do not parse and iterate minima Jonathan Tan
2022-03-23 23:30 ` Junio C Hamano
2022-03-24 15:27 ` Derrick Stolee
2022-03-24 22:06 ` Taylor Blau
2022-03-25 14:32 ` Derrick Stolee
2022-03-24 22:15 ` Jonathan Tan
2022-03-24 12:05 ` Bagas Sanjaya [this message]
2022-03-24 22:19 ` Jonathan Tan
2022-03-24 15:29 ` Derrick Stolee
2022-03-24 22:21 ` Jonathan Tan
2022-06-02 23:11 ` [PATCH v2] commit,shallow: unparse commits if grafts changed Jonathan Tan
2022-06-03 9:30 ` Ævar Arnfjörð Bjarmason
2022-06-03 13:29 ` Derrick Stolee
2022-06-03 15:27 ` Jonathan Tan
2022-06-03 15:26 ` Jonathan Tan
2022-06-06 17:54 ` [PATCH v3] " Jonathan Tan
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8f7ed9c5-9be6-55b4-f95c-40bf11d9e9ed@gmail.com \
--to=bagasdotme@gmail.com \
--cc=git@vger.kernel.org \
--cc=jonathantanmy@google.com \
--cc=stolee@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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).