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, 01:51 UTC
Message-ID
<7vbotgper8.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAFo4x0+_Uy=yjbO61qj8krS0-iovzC5WnBE8-1n5OzxgGeg6JA@mail.gmail.com>
Kato Kazuyoshi <kato.kazuyoshi@gmail.com> writes:
Show 8 quoted lines
> 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!
My wording came out a bit too strong; I didn't mean to "correct" anything.
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?
 [2/2] add side-by-side feature, which would involve:
  - making format_diff_line() to return $diff_class separately;
  - necessary addition of CSS;
  - addition of form to trigger the feature.

I do not think splitting the second patch into pieces smaller than that makes sense.

Thanks.
 
 
Previous: Kato KazuyoshiNext: Kato Kazuyoshi
Message 4 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.