Re: Using Filemerge.app as a git-diff viewer

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Toby White <tow21@...>
Cc: <git@...>, Wincent Colaiuta <win@...>
Date: Wednesday, November 21, 2007 - 7:27 am

On Wed, Nov 21, 2007 at 10:31:46AM +0000, Toby White wrote:


Have you looked at the documentation for GIT_EXTERNAL_DIFF (try git(7))?
I think it is a cleaner way of doing what you want (although I think you
will get each file diffed individually, which is perhaps not what you
want).

Something like:

$ cat >merge.sh <<EOF
#!/bin/sh
opendiff "$1" "$2"
EOF
$ GIT_EXTERNAL_DIFF=./merge.sh git-diff ...


write-tree? Yikes. If you want to diff against the working tree, then do
that. If you want to diff against the index, then you probably want to
git-checkout-index to a tmpdir, and diff against that.


Again, this could be simpler and faster by using git-checkout-index
(preceded by git-read-tree into a temp index, if you are comparing
against a tree).

-Peff
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Using Filemerge.app as a git-diff viewer, Toby White, (Wed Nov 21, 6:31 am)
Re: Using Filemerge.app as a git-diff viewer, Jeff King, (Wed Nov 21, 7:27 am)
Re: Using Filemerge.app as a git-diff viewer, Toby White, (Wed Nov 21, 9:10 am)
Re: Using Filemerge.app as a git-diff viewer, Jeff King, (Wed Nov 21, 10:36 am)
Re: Using Filemerge.app as a git-diff viewer, Wincent Colaiuta, (Wed Nov 21, 9:28 am)
Re: Using Filemerge.app as a git-diff viewer, Wincent Colaiuta, (Wed Nov 21, 8:59 am)
Re: Using Filemerge.app as a git-diff viewer, Jeff King, (Wed Nov 21, 9:04 am)
Re: Using Filemerge.app as a git-diff viewer, Jonathan del Strother, (Wed Nov 21, 7:20 am)