Git development
 help / color / mirror / Atom feed
* [PATCH 0/3] refs/reftable: fix on-disk representation of reflog timezones
@ 2026-09-29  9:56 Patrick Steinhardt
  2026-09-29  9:56 ` [PATCH 1/3] date: add helpers to convert between "+HHMM" timezones and minutes Patrick Steinhardt
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Patrick Steinhardt @ 2026-09-29  9:56 UTC (permalink / raw)
  To: git; +Cc: Josh McKinney, Junio C Hamano

Hi,

it was reported [1] that the way we store reflog timezones with the
reftable format has a mismatch with the reftable specification. While
the spec says that reftables should be stored as a signed offset in
minutes, we store them in the "[+-]HHMM" format that we typically use in
commit headers, for example.

This patch series fixes this bug by making our on-disk representation
match the specification. This will of course make us reinterpret old
reftables. But ultimately, the fallout caused by this change is somewhat
limited as we only ever use reflog timezones for display purposes. So
yes, we'll display a wrong timezone. But it's not used as part of any
kind of computations.

The series is built on top of v2.56.0.

Thanks!

Patrick

[1]: <85f7daa8-d60b-4348-ac2f-b1a68628af7b@app.fastmail.com>

---
Patrick Steinhardt (3):
      date: add helpers to convert between "+HHMM" timezones and minutes
      t/helper: fix segfault in "dump-reftable -t"
      refs/reftable: fix on-disk representation of reflog timezones

 apply.c                    |  3 ++-
 date.c                     | 25 +++++++++++++++++--------
 date.h                     |  9 +++++++++
 refs/reftable-backend.c    |  7 ++++---
 strbuf.c                   |  3 +--
 t/helper/test-reftable.c   | 13 +++++++++++--
 t/t0610-reftable-basics.sh | 35 +++++++++++++++++++++++++++++++++++
 7 files changed, 79 insertions(+), 16 deletions(-)


---
base-commit: a018953688f1b10bddf91bff8747068f5f4746a4
change-id: 20260929-pks-reftables-fix-timezone-format-93ecd0e7a1d1


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

end of thread, other threads:[~2026-10-01 17:11 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-29  9:56 [PATCH 0/3] refs/reftable: fix on-disk representation of reflog timezones Patrick Steinhardt
2026-09-29  9:56 ` [PATCH 1/3] date: add helpers to convert between "+HHMM" timezones and minutes Patrick Steinhardt
2026-09-30 11:47   ` Karthik Nayak
2026-09-30 12:05     ` Patrick Steinhardt
2026-10-01 10:18       ` Karthik Nayak
2026-09-30 19:54     ` Junio C Hamano
2026-09-29  9:56 ` [PATCH 2/3] t/helper: fix segfault in "dump-reftable -t" Patrick Steinhardt
2026-09-29  9:56 ` [PATCH 3/3] refs/reftable: fix on-disk representation of reflog timezones Patrick Steinhardt
2026-09-30 11:51   ` Karthik Nayak
2026-09-30 12:05     ` Patrick Steinhardt
2026-10-01  5:38 ` [PATCH v2 0/3] " Patrick Steinhardt
2026-10-01  5:39   ` [PATCH v2 1/3] date: add helpers to convert between "+HHMM" timezones and minutes Patrick Steinhardt
2026-10-01  5:39   ` [PATCH v2 2/3] t/helper: fix segfault in "dump-reftable -t" Patrick Steinhardt
2026-10-01  5:39   ` [PATCH v2 3/3] refs/reftable: fix on-disk representation of reflog timezones Patrick Steinhardt
2026-10-01 10:19   ` [PATCH v2 0/3] " Karthik Nayak
2026-10-01 17:11     ` Junio C Hamano

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