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" &
doneHope you can comment on this variation? And thanks for all the tips! Seba