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

Re: [RFC] Interactive difftool

From
Jeff King <peff@peff.net>
Date
Mar 28, 2009, 07:32 UTC
Message-ID
<20090328073253.GA9013@coredump.intra.peff.net>
In-Reply-To
<46dff0320903270823v5e8e9c80w506d8a85440588f5@mail.gmail.com>
On Fri, Mar 27, 2009 at 11:23:15PM +0800, Ping Yin wrote:
Show 6 quoted lines
> We can just change git-difftool.perl
> 
> The easiest way is first parsing the output of git diff --stat,
> adding the number at the beginning, for example
> [1] diff.c                   |   10 +++++++++-
> [2] t/t4020-diff-external.sh |    8 ++++++++

I am not paying enough attention to this thread to comment on your overall goal, but instead of parsing "--stat", try "--numstat".

-Peff
Previous: Ping YinNext: Ping Yin
Message 4 of 5 in “[RFC] Interactive difftool”
  1. Ping YinMar 26, 2009
  2. David AguilarMar 27, 2009
  3. Ping YinMar 27, 2009
  4. Jeff KingMar 28, 2009
  5. Ping YinMar 28, 2009

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.