Re: Git difftool / mergetool on directory tree
- From
- Neal Kreitzinger <nkreitzinger@gmail.com>
- Date
- Dec 15, 2011, 19:53 UTC
- Message-ID
- <4EEA501D.3050401@gmail.com>
- In-Reply-To
- <4EE8618E.7020902@gmail.com>
On 12/14/2011 2:42 AM, Daniele Segato wrote:
Show 13 quoted lines
> many diff / merge tool around have the ability to compare a directory > tree (meld is one, but there are many). > > Is there a way to start a difftool or a mergetool on a folder instead of > the single file? > > It would be an handsome feature to git. > > I googled a little before popping out this question and I only found > suggestion on how to open "many" file at once instead of opening them > serially but that's not the same thing not as powerful as directory > comparison. >
(This works with kdiff3 as the mergetool/difftool on git 1.7.1 on linux):
git difftool <commit>:<dir>/ <commit-2>:<dir>/
e.g., git difftool mycommit:ourdir/ yourcommit:ourdir/
<commit> = pointer to a commit (ie: sha-1, branchname, tag, ref) <dir> = path of dir relative to worktree
v/r, neal