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

Project idea: github-like diff view

From
Duy Nguyen <pclouds@gmail.com>
Date
Apr 20, 2014, 09:58 UTC
Message-ID
<CACsJy8CQxPrqs31nBvr_oPRD3EJ6Hu-Lq=++7nWpxx5BQZYi8Q@mail.gmail.com>

When you view a commit from github, it shows extra info besides standard unified diff format:

- the column number of each line (useful for jumping directly to that
line without manual counting from @@ line)
- --color-words within unified diff format, using background color to
show what part of the line has changed. This is only enabled for
1-line changes.

These can be implemented and seem useful, especially the --color-words item. Once you get familiar with diff.c I suppose you could implement both in a week (the first probably takes just a day).

-- 
Duy
Next: Jeff King
Message 1 of 5 in “Project idea: github-like diff view”
  1. Duy NguyenApr 20, 2014
  2. Jeff KingApr 20, 2014
  3. Duy NguyenApr 22, 2014
  4. Jeff KingApr 22, 2014
  5. Felipe ContrerasApr 22, 2014

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.