git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH/RFC] gitweb: add the ability to show side-by-side diff on commitdiff.

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 17, 2011, 03:57 UTC
Message-ID
<7v7h44p8vz.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAFo4x0KPP1yZec+98_rn9tG_fhtB-DYAcdi90TwiwUPq+DP90g@mail.gmail.com>
Kato Kazuyoshi <kato.kazuyoshi@gmail.com> writes:
Show 16 quoted lines
> On Mon, Oct 17, 2011 at 10:51 AM, Junio C Hamano <gitster@pobox.com> wrote:
>>
>> I think a better organization would be
>>
>>  [1/2] change code so that $diff_class does not have leading SP
>>       optionally catch a case where $diff_class stays empty as an error?
>>
>
> I think we don't have to treat empty $diff_class as an error because
> $diff_class will be an empty when $line is around modification
> (ex. foo or quux).
>
>   foo
> - bar
> + baz
>   quuz

Ok. then even though class="diff " is not any different from class="diff", I have to say generated html output becomes aesthetically less nice with this change; we may want to do something about it _iff_ it does not take too much change, but as I said I do not care too much about it.

Previous: Kato Kazuyoshi
Message 6 of 6 in “gitweb: add the ability to show side-by-side diff on commitdiff.”
  1. gitweb: add the ability to show side-by-side diff on commitdiff.Kato Kazuyoshi, Oct 16, 2011
  2. Junio C HamanoOct 17, 2011
  3. Kato KazuyoshiOct 17, 2011
  4. Junio C HamanoOct 17, 2011
  5. Kato KazuyoshiOct 17, 2011
  6. Junio C HamanoOct 17, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.