* 0-Based indexes for git log
@ 2025-09-23 21:15 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2025-09-24 2:12 ` Ben Knoble
` (4 more replies)
0 siblings, 5 replies; 17+ messages in thread
From: 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣 @ 2025-09-23 21:15 UTC (permalink / raw)
To: git
[-- Attachment #1.1: Type: text/plain, Size: 371 bytes --]
In git log it uses a 1-based index for the date instead of a 0 based
index. So it says "Fri Sep 19 14:23:24 2025 -0400" when it should say
"Fri Sep 18 14:23:24 2025 -0400" (or "Friday 2025-8-18 14:23:24
(-4:00.00)" to get a better format)
--
George truly, 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
This email does not constitute a legally binding contract
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: 0-Based indexes for git log
2025-09-23 21:15 0-Based indexes for git log 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
@ 2025-09-24 2:12 ` Ben Knoble
2025-09-24 13:46 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2025-09-24 5:22 ` Jeff King
` (3 subsequent siblings)
4 siblings, 1 reply; 17+ messages in thread
From: Ben Knoble @ 2025-09-24 2:12 UTC (permalink / raw)
To: 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
Cc: git
> Le 23 sept. 2025 à 17:16, 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣 <velocifyer@velocifyer.com> a écrit :
>
> In git log it uses a 1-based index for the date instead of a 0 based index. So it says "Fri Sep 19 14:23:24 2025 -0400" when it should say "Fri Sep 18 14:23:24 2025 -0400" (or "Friday 2025-8-18 14:23:24 (-4:00.00)" to get a better format)
Are these date formats locale-specific? In both the US English and France French locales I use commonly, the 19th of September in 2025 _is_ a Friday. Showing 18 would only be confusing.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: 0-Based indexes for git log
2025-09-23 21:15 0-Based indexes for git log 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2025-09-24 2:12 ` Ben Knoble
@ 2025-09-24 5:22 ` Jeff King
2025-09-24 13:42 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2025-09-24 15:43 ` Nico Williams
` (2 subsequent siblings)
4 siblings, 1 reply; 17+ messages in thread
From: Jeff King @ 2025-09-24 5:22 UTC (permalink / raw)
To: 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
Cc: git
On Tue, Sep 23, 2025 at 05:15:46PM -0400, 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣 wrote:
> In git log it uses a 1-based index for the date instead of a 0 based index.
> So it says "Fri Sep 19 14:23:24 2025 -0400" when it should say "Fri Sep 18
> 14:23:24 2025 -0400"
Are you proposing that the first day of September is the 0th? You might
be able to do that with locale support and using strftime's %c option,
but I'm not sure how powerful locales are (or how one even defines
them).
> (or "Friday 2025-8-18 14:23:24 (-4:00.00)" to get a
> better format)
If you just care about the format, check out the --date option in
git-log's manpage. Especially the "format:" specifier, which relies on
strftime, like:
git log --date=format:'%A %Y-%m-%d %H:%M:%S (%z)'
-Peff
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: 0-Based indexes for git log
2025-09-24 5:22 ` Jeff King
@ 2025-09-24 13:42 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
0 siblings, 0 replies; 17+ messages in thread
From: 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣 @ 2025-09-24 13:42 UTC (permalink / raw)
To: Jeff King; +Cc: git
[-- Attachment #1.1: Type: text/plain, Size: 599 bytes --]
[sent again because i didn`t reply all
> Are you proposing that the first day of September is the 0th? You might
> be able to do that with locale support and using strftime's %c option,
> but I'm not sure how powerful locales are (or how one even defines
> them).
No, i am sugesting that it is still the 1st but it is september 0
--
George truly, 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
This email does not constitute a legally binding contract
Remember to reply all on mailing lists (this is here so i don't forget
to use reply all)(If you are reading this i forgot to remove it)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: 0-Based indexes for git log
2025-09-24 2:12 ` Ben Knoble
@ 2025-09-24 13:46 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2025-09-24 15:26 ` Ben Knoble
0 siblings, 1 reply; 17+ messages in thread
From: 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣 @ 2025-09-24 13:46 UTC (permalink / raw)
To: Ben Knoble; +Cc: git
[-- Attachment #1.1: Type: text/plain, Size: 588 bytes --]
> Are these date formats locale-specific? In both the US English and France French locales I use commonly, the 19th of September in 2025 _is_ a Friday. Showing 18 would only be confusing.
Showing 19 confuses me because i'm used to 0-based indexes where the
19th is labeld as 18. Showing 18 would not cunfuse most people.
--
George truly, 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
This email does not constitute a legally binding contract
Remember to reply all on mailing lists (this is here so i don't forget
to use reply all)(If you are reading this i forgot to remove it)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: 0-Based indexes for git log
2025-09-24 13:46 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
@ 2025-09-24 15:26 ` Ben Knoble
0 siblings, 0 replies; 17+ messages in thread
From: Ben Knoble @ 2025-09-24 15:26 UTC (permalink / raw)
To: 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
Cc: git, Jeff King
> Le 24 sept. 2025 à 09:46, 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣 <velocifyer@velocifyer.com> a écrit :
>
>
>>
>> Are these date formats locale-specific? In both the US English and France French locales I use commonly, the 19th of September in 2025 _is_ a Friday. Showing 18 would only be confusing.
>
> Showing 19 confuses me because i'm used to 0-based indexes where the 19th is labeld as 18. Showing 18 would not cunfuse most people.
I would need evidence of that. Everyone I interact with agrees to write « 19 » when « 19th » is implied.
As I asked: is this particular to an community? I’m genuinely curious if there are groups or cultures that communicate this way.
As Peff points out, you can probably make commands display your own personal preference (or a locale should handle this for your community). But I don’t think this is something we can force on other people, because it would be confusing.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: 0-Based indexes for git log
2025-09-23 21:15 0-Based indexes for git log 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2025-09-24 2:12 ` Ben Knoble
2025-09-24 5:22 ` Jeff King
@ 2025-09-24 15:43 ` Nico Williams
2025-09-24 16:53 ` Junio C Hamano
2025-09-24 17:01 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2025-09-24 17:15 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2025-09-24 17:18 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
4 siblings, 2 replies; 17+ messages in thread
From: Nico Williams @ 2025-09-24 15:43 UTC (permalink / raw)
To: 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
Cc: git
On Tue, Sep 23, 2025 at 05:15:46PM -0400, 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣 wrote:
> In git log it uses a 1-based index for the date instead of a 0 based index.
> So it says "Fri Sep 19 14:23:24 2025 -0400" when it should say "Fri Sep 18
> 14:23:24 2025 -0400" (or "Friday 2025-8-18 14:23:24 (-4:00.00)" to get a
> better format)
Day of month numbers are 1-based.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: 0-Based indexes for git log
2025-09-24 15:43 ` Nico Williams
@ 2025-09-24 16:53 ` Junio C Hamano
2025-09-24 17:11 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2025-09-24 17:28 ` Ben Knoble
2025-09-24 17:01 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
1 sibling, 2 replies; 17+ messages in thread
From: Junio C Hamano @ 2025-09-24 16:53 UTC (permalink / raw)
To: Nico Williams
Cc: 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣,
git
Nico Williams <nico@cryptonector.com> writes:
> On Tue, Sep 23, 2025 at 05:15:46PM -0400, 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣 wrote:
>> In git log it uses a 1-based index for the date instead of a 0 based index.
>> So it says "Fri Sep 19 14:23:24 2025 -0400" when it should say "Fri Sep 18
>> 14:23:24 2025 -0400" (or "Friday 2025-8-18 14:23:24 (-4:00.00)" to get a
>> better format)
>
> Day of month numbers are 1-based.
Correct.
There are a few things in Git that are 0 based, but not so many.
* parent numbers are 1-based. HEAD~1 is the "previous commit", aka
"first parent". HEAD~0 is the HEAD itself.
* merge parent numbers are 2-based (sanity of this statement is
already questionable). If HEAD is a merge, HEAD~2 is the
"(first) side branch that was merged", HEAD~3 is the "(second)
side brnach that was merged (in an octopus merge), and so on.
* reflog entries are 1-based. @{1} is the "previous object pointed
by the current branch", @{2} is one before that. @{0} is the
current branch itself.
* stash entries are counted 0-based. "git stash list" shows from
stash@{0} that is the most recently created stash entry.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: 0-Based indexes for git log
2025-09-24 15:43 ` Nico Williams
2025-09-24 16:53 ` Junio C Hamano
@ 2025-09-24 17:01 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2025-09-24 17:04 ` Nico Williams
1 sibling, 1 reply; 17+ messages in thread
From: 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣 @ 2025-09-24 17:01 UTC (permalink / raw)
To: Nico Williams; +Cc: git
[-- Attachment #1.1: Type: text/plain, Size: 209 bytes --]
> Day of month numbers are 1-based.
I consider day of month to use a 0-based index
--
George truly, 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
This email does not constitute a legally binding contract
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: 0-Based indexes for git log
2025-09-24 17:01 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
@ 2025-09-24 17:04 ` Nico Williams
0 siblings, 0 replies; 17+ messages in thread
From: Nico Williams @ 2025-09-24 17:04 UTC (permalink / raw)
To: 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
Cc: git
On Wed, Sep 24, 2025 at 01:01:30PM -0400, 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣 wrote:
> > Day of month numbers are 1-based.
>
> I consider day of month to use a 0-based index
The rest of the world does not. You want to be able to interoperate
with the rest of the world. So day of month numbers are 1-based. I
also wish everything were 0-based, but it's not. That's just life.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: 0-Based indexes for git log
2025-09-24 16:53 ` Junio C Hamano
@ 2025-09-24 17:11 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2025-09-24 17:28 ` Ben Knoble
1 sibling, 0 replies; 17+ messages in thread
From: 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣 @ 2025-09-24 17:11 UTC (permalink / raw)
To: Junio C Hamano, Nico Williams; +Cc: git
[-- Attachment #1.1: Type: text/plain, Size: 901 bytes --]
>> Day of month numbers are 1-based.
> Correct.
No, day of month numbers are 0-based.
> There are a few things in Git that are 0 based, but not so many.
>
> * parent numbers are 1-based. HEAD~1 is the "previous commit", aka
> "first parent". HEAD~0 is the HEAD itself.
HEAD~1 just means HEAD - 1 commit.(AKA "reverse 0-based index")
> * reflog entries are 1-based. @{1} is the "previous object pointed
> by the current branch", @{2} is one before that. @{0} is the
> current branch itself.
No, that is just a reverse 0-based index.
> * stash entries are counted 0-based. "git stash list" shows from
> stash@{0} that is the most recently created stash entry.
That is correct. It's a reverse 0-based index becuase it uses reflog syntax.
--
George truly, 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
This email does not constitute a legally binding contract
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: 0-Based indexes for git log
2025-09-23 21:15 0-Based indexes for git log 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
` (2 preceding siblings ...)
2025-09-24 15:43 ` Nico Williams
@ 2025-09-24 17:15 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2025-09-24 17:22 ` Emily Shaffer
2025-09-24 17:18 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
4 siblings, 1 reply; 17+ messages in thread
From: 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣 @ 2025-09-24 17:15 UTC (permalink / raw)
To: git
[-- Attachment #1.1: Type: text/plain, Size: 567 bytes --]
> In git log it uses a 1-based index for the date instead of a 0 based
> index. So it says "Fri Sep 19 14:23:24 2025 -0400" when it should say
> "Fri Sep 18 14:23:24 2025 -0400" (or "Friday 2025-8-18 14:23:24
> (-4:00.00)" to get a better format)
>
I suggest git adds a config option for 0-based date and automaticly uses
0-based date if there is a file at $HOME/use-0-based-index-for-date or
$USE-0-BASED-INDEX-FOR-DATE == true
--
George truly, 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
This email does not constitute a legally binding contract
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: 0-Based indexes for git log
2025-09-23 21:15 0-Based indexes for git log 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
` (3 preceding siblings ...)
2025-09-24 17:15 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
@ 2025-09-24 17:18 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
4 siblings, 0 replies; 17+ messages in thread
From: 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣 @ 2025-09-24 17:18 UTC (permalink / raw)
To: git
[-- Attachment #1.1: Type: text/plain, Size: 616 bytes --]
[resending because i made a typo]
> In git log it uses a 1-based index for the date instead of a 0 based
> index. So it says "Fri Sep 19 14:23:24 2025 -0400" when it should say
> "Fri Sep 18 14:23:24 2025 -0400" (or "Friday 2025-8-18 14:23:24
> (-4:00.00)" to get a better format)
>
I suggest git adds a config option for 0-based date and automatically
uses 0-based date if there is a file at
$HOME/.config/use-0-based-index-for-date or $USE-0-BASED-INDEX-FOR-DATE
== true
--
George truly, 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
This email does not constitute a legally binding contract
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: 0-Based indexes for git log
2025-09-24 17:15 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
@ 2025-09-24 17:22 ` Emily Shaffer
0 siblings, 0 replies; 17+ messages in thread
From: Emily Shaffer @ 2025-09-24 17:22 UTC (permalink / raw)
To: 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
Cc: git
On Wed, Sep 24, 2025 at 10:15 AM 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
<velocifyer@velocifyer.com> wrote:
>
> > In git log it uses a 1-based index for the date instead of a 0 based
> > index. So it says "Fri Sep 19 14:23:24 2025 -0400" when it should say
> > "Fri Sep 18 14:23:24 2025 -0400" (or "Friday 2025-8-18 14:23:24
> > (-4:00.00)" to get a better format)
> >
> I suggest git adds a config option for 0-based date and automaticly uses
> 0-based date if there is a file at $HOME/use-0-based-index-for-date or
> $USE-0-BASED-INDEX-FOR-DATE == true
Git uses strftime from libc for date formatting. strftime[1] doesn't
offer a way to format the date as you prefer - what you're asking for
appears to be a personal preference, not a standard in any community
of the world. I think that your best bet would be to attempt to
contribute an option to strftime to render the day of the month from
0-30, but I would be surprised if such a contribution were to be
welcomed - as, again, this looks like a preference held by very few.
Based on my quick refresher through date.[ch] in the Git codebase, it
would be infeasible to add such a flag and custom formatting.
However, Git is open source software, and you're fully welcome to
patch your copy of Git to accept such a config (or this ~/some-file,
which is not a way Git typically sets configuration) and build it
yourself locally.
1: https://www.man7.org/linux/man-pages/man3/strftime.3.html
>
> --
> George truly, 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
> This email does not constitute a legally binding contract
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: 0-Based indexes for git log
2025-09-24 16:53 ` Junio C Hamano
2025-09-24 17:11 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
@ 2025-09-24 17:28 ` Ben Knoble
2025-09-25 5:46 ` Patrick Steinhardt
2025-09-25 13:25 ` Junio C Hamano
1 sibling, 2 replies; 17+ messages in thread
From: Ben Knoble @ 2025-09-24 17:28 UTC (permalink / raw)
To: Junio C Hamano
Cc: Nico Williams,
𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣,
git
> Le 24 sept. 2025 à 12:53, Junio C Hamano <gitster@pobox.com> a écrit :
>
> Nico Williams <nico@cryptonector.com> writes:
>
>>> On Tue, Sep 23, 2025 at 05:15:46PM -0400, 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣 wrote:
>>> In git log it uses a 1-based index for the date instead of a 0 based index.
>>> So it says "Fri Sep 19 14:23:24 2025 -0400" when it should say "Fri Sep 18
>>> 14:23:24 2025 -0400" (or "Friday 2025-8-18 14:23:24 (-4:00.00)" to get a
>>> better format)
>>
>> Day of month numbers are 1-based.
>
> Correct.
>
> There are a few things in Git that are 0 based, but not so many.
>
> * parent numbers are 1-based. HEAD~1 is the "previous commit", aka
> "first parent". HEAD~0 is the HEAD itself.
>
> * merge parent numbers are 2-based (sanity of this statement is
> already questionable). If HEAD is a merge, HEAD~2 is the
> "(first) side branch that was merged", HEAD~3 is the "(second)
> side brnach that was merged (in an octopus merge), and so on.
HEAD^2, 3, etc., rather? :)
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: 0-Based indexes for git log
2025-09-24 17:28 ` Ben Knoble
@ 2025-09-25 5:46 ` Patrick Steinhardt
2025-09-25 13:25 ` Junio C Hamano
1 sibling, 0 replies; 17+ messages in thread
From: Patrick Steinhardt @ 2025-09-25 5:46 UTC (permalink / raw)
To: Ben Knoble
Cc: Junio C Hamano, Nico Williams,
𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣,
git
On Wed, Sep 24, 2025 at 01:28:31PM -0400, Ben Knoble wrote:
> > * merge parent numbers are 2-based (sanity of this statement is
> > already questionable). If HEAD is a merge, HEAD~2 is the
> > "(first) side branch that was merged", HEAD~3 is the "(second)
> > side brnach that was merged (in an octopus merge), and so on.
>
> HEAD^2, 3, etc., rather? :)
Probably. I also always regarded this as the nth parent, not the nth
merge parent. HEAD^1 returns the first parent even for non-merges,
HEAD^2 the second and so on. So I'd claim these are also 1-based.
Patrick
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: 0-Based indexes for git log
2025-09-24 17:28 ` Ben Knoble
2025-09-25 5:46 ` Patrick Steinhardt
@ 2025-09-25 13:25 ` Junio C Hamano
1 sibling, 0 replies; 17+ messages in thread
From: Junio C Hamano @ 2025-09-25 13:25 UTC (permalink / raw)
To: Ben Knoble
Cc: Nico Williams,
𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣,
git
Ben Knoble <ben.knoble@gmail.com> writes:
>> * merge parent numbers are 2-based (sanity of this statement is
>> already questionable). If HEAD is a merge, HEAD~2 is the
>> "(first) side branch that was merged", HEAD~3 is the "(second)
>> side brnach that was merged (in an octopus merge), and so on.
>
> HEAD^2, 3, etc., rather? :)
Thanks for correcting me. Yes. And HEAD^1 is the first parent that
is the same as HEAD~1.
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2025-09-25 13:25 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-23 21:15 0-Based indexes for git log 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2025-09-24 2:12 ` Ben Knoble
2025-09-24 13:46 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2025-09-24 15:26 ` Ben Knoble
2025-09-24 5:22 ` Jeff King
2025-09-24 13:42 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2025-09-24 15:43 ` Nico Williams
2025-09-24 16:53 ` Junio C Hamano
2025-09-24 17:11 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2025-09-24 17:28 ` Ben Knoble
2025-09-25 5:46 ` Patrick Steinhardt
2025-09-25 13:25 ` Junio C Hamano
2025-09-24 17:01 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2025-09-24 17:04 ` Nico Williams
2025-09-24 17:15 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2025-09-24 17:22 ` Emily Shaffer
2025-09-24 17:18 ` 𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
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 NNTP newsgroup(s).