From: "SZEDER Gábor" <szeder.dev@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Tuomas Ahola <taahol@utu.fi>,
Linus Torvalds <torvalds@kernel.org>,
git@vger.kernel.org,
Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: [PATCH] describe: count the distance correctly when commit dates are skewed
Date: Mon, 2 Nov 2026 07:17:57 +0100 [thread overview]
Message-ID: <augrFe35Zci2mG+j@szeder.dev> (raw)
In-Reply-To: <xmqqa4nt2wch.fsf@gitster.g>
On Sat, Oct 31, 2026 at 06:07:10PM -0700, Junio C Hamano wrote:
> Tuomas Ahola <taahol@utu.fi> writes:
>
> > Linus Torvalds <torvalds@kernel.org> wrote:
> >
> >> +test_expect_success 'setup: describe a tag dated before its parent' '
> >> + git init skew &&
> >> + (
> >> + cd skew &&
> >> + git config core.commitGraph true &&
> >> + test_commit --date "2020-01-01 18:00" base &&
> >> + test_commit --date "2020-01-01 18:01" o &&
> >> + test_commit --annotate --date "2020-01-01 17:01" T &&
> >> + git checkout -b side o &&
> >> + test_commit --date "2020-01-01 18:02" B &&
> >> + git checkout main &&
> >> + GIT_COMMITTER_DATE="2020-01-01 18:03" git merge --no-ff -m x side &&
> >> + git commit-graph write --reachable
> >> + )
> >> +'
> >
> > Just a clueless rewrite of the above. I had quite fun writing it, so why not
> > to share... it works and might even offer some not-completely-bogus food for
> > thought.
> >
> > git init skew &&
> > (
> > cd skew &&
> > test_config core.commitGraph true &&
>
> Doesn't this barf when it tries to register a clean-up action from
> inside a subshell?
In both cases this is a freshly initialized repository, and the commit
graph has been enabled by default for a long time, so why do we need
to set this config in the first place?
next prev parent reply other threads:[~2026-11-02 6:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-31 6:55 [PATCH] describe: count the distance correctly when commit dates are skewed Linus Torvalds
2026-10-31 12:31 ` Tuomas Ahola
2026-11-01 1:07 ` Junio C Hamano
2026-11-01 9:46 ` Tuomas Ahola
2026-11-01 18:12 ` Junio C Hamano
2026-11-02 6:17 ` SZEDER Gábor [this message]
2026-11-02 12:46 ` Patrick Steinhardt
2026-11-02 14:20 ` Derrick Stolee
2026-11-02 17:03 ` Junio C Hamano
2026-11-02 17:52 ` Derrick Stolee
2026-11-02 18:37 ` Linus Torvalds
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=augrFe35Zci2mG+j@szeder.dev \
--to=szeder.dev@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=taahol@utu.fi \
--cc=torvalds@kernel.org \
--cc=torvalds@linux-foundation.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox