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

Re: GSoC idea: adding JavaScript library / framework in gitweb

From
Jakub Narebski <jnareb@gmail.com>
Date
Mar 26, 2012, 00:44 UTC
Message-ID
<201203260244.23556.jnareb@gmail.com>
In-Reply-To
<CACeyogdCsFZEqmm057ZMcCYRuxiZ2-yfcV9+e1AdOOhTjne8vA@mail.gmail.com>
On Sun, 25 Mar 2012, chaitanyaa nalla wrote:
Show 5 quoted lines
> "creating side-by-side diff from unified  diff in JavaScript, so that
>  switching between unified and side-by-side diff view  could be done
>  entirely client-side, without hitting the server"
>
>  could you please elaborate on this, I didn't understand this completly. 

Side-by-side diff is a new gitweb feature, available in v.7.9 (since commit 6ba1eb5 (gitweb: Add a feature to show side-by-side diff, 2011-10-31))

Both git.kernel.org and repo.or.cz are based on an older version of gitweb. You need to install gitweb to test this (and perhaps git-instaweb for easier HTML preview).

In short: unified diff like this:
  @@ -119,8 +119,8 @@ UI, Workflows & Features
   ctx
  -foo
  +bar
is turned into side-by-side diff:
   ctx                    ctx
  -foo                   +bar

Commit 6ae683c (gitweb: Add navigation to select side-by-side diff, 2011-10-31) allows switching between unified and side-by-side diff; the goal of this feature would be to make it client-side (hijacking the link).

-- 
Jakub Narebski
Poland
Previous: chaitanyaa nallaNext: chaitanyaa nalla
Message 10 of 20 in “gsoc idea adding javascript library / framework in gitweb”
  1. chaitanyaa nallaMar 24, 2012
  2. Jakub NarebskiMar 24, 2012
  3. chaitanyaa nallaMar 24, 2012
  4. chaitanyaa nallaMar 24, 2012
  5. Jakub NarebskiMar 24, 2012
  6. chaitanyaa nallaMar 24, 2012
  7. chaitanyaa nallaMar 25, 2012
  8. Jakub NarebskiMar 25, 2012
  9. chaitanyaa nallaMar 25, 2012
  10. Jakub NarebskiMar 26, 2012
  11. chaitanyaa nallaMar 27, 2012
  12. Jakub NarebskiMar 27, 2012
  13. chaitanyaa nallaMar 27, 2012
  14. Jakub NarebskiMar 28, 2012
  15. chaitanyaa nallaMar 28, 2012
  16. Jakub NarebskiMar 29, 2012
  17. chaitanyaa nallaMar 29, 2012
  18. Jakub NarebskiMar 30, 2012
  19. chaitanya nallaApr 1, 2012
  20. Jakub NarebskiMar 30, 2012

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.