Git development
 help / color / mirror / Atom feed
* Breaking change with "git log -n" since 2.43
@ 2024-02-21 13:32 Maarten Ackermans
  2024-02-21 13:55 ` Kristoffer Haugsbakk
  2024-02-21 17:51 ` Jeff King
  0 siblings, 2 replies; 10+ messages in thread
From: Maarten Ackermans @ 2024-02-21 13:32 UTC (permalink / raw)
  To: git

Hi all,

I would like to report a breaking change with "git log -n" introduced
in 2.43 that's causing some trouble:
https://github.com/git/git/commit/71a1e94821666909b7b2bd62a36244c601f8430e#diff-380c4eac267b5af349ace88c78a2b004a16ed20c2b605c76827981063924bbf9R2222

To reproduce, the command `git log -n 9007199254740991` fails on
2.43.2, whereas it didn't on 2.42.0. This specific number corresponds
to the Number.MAX_SAFE_INTEGER (2^53 - 1) in JavaScript (docs:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER).
The max value that is supported now is a signed 32-bit integer (2^31 -
1).

I suppose git simply ignored the extra digits of the number, as the
commit message describes.

See https://github.com/intuit/auto/issues/2425#issuecomment-1956557071
for the impact.

Best regards,

Maarten Ackermans

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-02-21 17:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-21 13:32 Breaking change with "git log -n" since 2.43 Maarten Ackermans
2024-02-21 13:55 ` Kristoffer Haugsbakk
2024-02-21 14:21   ` Maarten Ackermans
2024-02-21 14:24     ` Sean Allred
2024-02-21 15:07       ` Maarten Ackermans
2024-02-21 15:17         ` Sean Allred
     [not found]           ` <CAB=tB2vKj45yr3amMbhv_dYBdqYOtoiMS7Ecx4WO1TE2STHEsA@mail.gmail.com>
2024-02-21 15:34             ` Sean Allred
2024-02-21 15:32         ` Kristoffer Haugsbakk
2024-02-21 15:38     ` Kristoffer Haugsbakk
2024-02-21 17:51 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox