All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] gitweb: shorten commitdiff index hashes with file modes
@ 2026-07-15  9:11 Travor Liu
  2026-07-15  9:11 ` [PATCH 1/2] gitweb: shorten index hashes with trailing " Travor Liu
  2026-07-15  9:11 ` [PATCH 2/2] t9502: test gitweb index hash formatting with modes Travor Liu
  0 siblings, 2 replies; 4+ messages in thread
From: Travor Liu @ 2026-07-15  9:11 UTC (permalink / raw)
  To: git; +Cc: Travor Liu

From: Travor Liu <travor_lzh@outlook.com>

This series fixes gitweb rendering of commitdiff index lines that carry
a trailing file mode, such as:

    index <old>..<new> 100644

gitweb currently recognizes the mode before matching the object IDs,
which appends the file-type annotation first.  The later object-ID
matcher expects the ID range to end the line, so these common index
lines keep two full, unlinked object IDs.

Patch 1 moves the mode handling so the index object IDs can still be
shortened and linked.

Patch 2 adds a gitweb regression test for the common
"index <old>..<new> 100644" form.

Tested with:

    make NO_RUST=YesPlease
    cd t && prove -v t9502-gitweb-standalone-parse-output.sh

Travor Liu (2):
  gitweb: shorten index hashes with trailing file modes
  t9502: test gitweb index hash formatting with modes

 gitweb/gitweb.perl                        | 18 +++++++++++++-----
 t/t9502-gitweb-standalone-parse-output.sh | 14 ++++++++++++++
 2 files changed, 27 insertions(+), 5 deletions(-)

-- 
2.52.0


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

end of thread, other threads:[~2026-07-17  5:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-15  9:11 [PATCH 0/2] gitweb: shorten commitdiff index hashes with file modes Travor Liu
2026-07-15  9:11 ` [PATCH 1/2] gitweb: shorten index hashes with trailing " Travor Liu
2026-07-15  9:11 ` [PATCH 2/2] t9502: test gitweb index hash formatting with modes Travor Liu
2026-07-17  5:50   ` Junio C Hamano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.