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
Kato Kazuyoshi <kato.kazuyoshi@gmail.com>
Date
Oct 17, 2011, 01:15 UTC
Message-ID
<CAFo4x0+_Uy=yjbO61qj8krS0-iovzC5WnBE8-1n5OzxgGeg6JA@mail.gmail.com>
In-Reply-To
<7vobxgpixo.fsf@alter.siamese.dyndns.org>
On Mon, Oct 17, 2011 at 9:20 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 11 quoted lines
>
> What are these changes for, except perhaps to make the patch larger than
> necesssary to make it harder to review?
>
> It would leave an unnecessary SP like 'class="diff "' when all the arms of
> if/elsif cascade fall off and $diff_class is left empty. It isn't a major
> issue (I suspect that such a case might even be an error), and I even
> think the code after the above patch would be easier to read and more
> sensible, but shouldn't that kind of "style fix" be in a separate clean-up
> patch that does not introduce any new feature?
>
Sorry. I will separate my patch into two or three commits. Probably like:
- format_diff_line returns a class with an line.
- remove trailing space from the class.
- add side-by-side feature and CSS.
- add form.
Thank you for your correction!
-- 
Kato Kazuyoshi
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 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.