git-difftool: full file tree compare using meld?

前端 未结 3 715
执念已碎
执念已碎 2021-02-07 03:52

Is there an easy way to compare the file tree of an old git commit with the working file tree, in meld?

git-difftool does something very similar, but I don\'t want it to

相关标签:
3条回答
  • 2021-02-07 04:24

    I've tested this on a recent version of meld and it is now built in. You can use it with meld <directory path> so "meld ." works for the current directory. You can checkout a version git co [version] then git reset [version]^ and then run "meld ." to compare any version with it's previous version.

    0 讨论(0)
  • 2021-02-07 04:39

    With git > 1.7.11, the git difftool command now supports diffing complete directories using the --dir-diff command. This can be used together with meld:

    $ git difftool --tool=meld --dir-diff [commit-to-diff-against]
    
    0 讨论(0)
  • 2021-02-07 04:41

    I also found this issue annoying so I've made git meld which allows a more comfortable way of diffing arbitrary commits against the working tree or the staging area. You can find it at https://github.com/wmanley/git-meld .

    0 讨论(0)
提交回复
热议问题