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

Re: git diffall, open all diff files immediatly (eg tabbed window?in BC)

From
Seba Illingworth <seba.illingworth@gmail.com>
Date
Aug 22, 2009, 02:10 UTC
Message-ID
<loom.20090822T035703-224@post.gmane.org>
In-Reply-To
<20090821234512.GA58248@gmail.com>
David Aguilar <davvid <at> gmail.com> writes:
> I would recommend against saying 'git difftool head' on your
> blog beause that only works on OSX with its case-preserving yet
> case-insensitive filesystem....

Thanks David, understood and updated to 'HEAD'. 'head' had worked for me with my sloppy Windows ways ;)

I struggled with your previous suggestion for handling paths with spaces; I couldn't get the for-loop to split the input into individual filenames on the line-break separator (after outer quotes expanded the result?).

But rewriting it this way seems to work well and handles spaces (Windows):
    git diff --name-only "$@" | while read filename; do
        git difftool "$@" --no-prompt "$filename" &
    done

Hope you can comment on this variation? And thanks for all the tips! Seba

Previous: David Aguilar
Message 5 of 5 in “git diffall, open all diff files immediatly (eg tabbed window in BC)”
  1. Seba IllingworthAug 21, 2009
  2. David AguilarAug 21, 2009
  3. Seba IllingworthAug 21, 2009
  4. David AguilarAug 21, 2009
  5. Seba IllingworthAug 22, 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.