]> Lady’s Gitweb - Gitweb/commit
gitweb: "alternate" starts with shade (i.e. 1)
authorLuben Tuikov <redacted>
Thu, 28 Sep 2006 23:47:50 +0000 (16:47 -0700)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:10 +0000 (00:07 -0400)
commit110e51bbc9362e2d8eaa921a9125b89224535fb2bd7e90cc9a0cff74d67e63ab
tree4b0f87fe3240d0b5c19c7e9bcca0f7aa91667696e32da6e392b33e183c46992c
parentb7a0ac3afbd158933ca04494dc73889f637a7585a9d63e413bda2be23112fcfd
gitweb: "alternate" starts with shade (i.e. 1)

When displaying a list of rows (difftree, shortlog, etc),
the first entry is now printed shaded, i.e. alternate is
initialized to 1, as opposed to non-shaded (alternate
initialized to 0).

This solves the problem when there is only one row to
display -- it is displayed shaded to visually indicate that
it is "active", part of a "list", etc.

(Compare this to the trivial case of more than one entry,
where the rows have alternating shade, thus suggesting
being part of a "list" of "active" entries, etc.)

Signed-off-by: Luben Tuikov <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.229006 seconds and 4 git commands to generate.