seticer
seticer

Reputation: 159

Is there a way to view git history using external diff tool?

When I view a git commit history in git gui, is there a way to use an external diff tool to show commit differences?

Upvotes: 3

Views: 1830

Answers (1)

lutzky
lutzky

Reputation: 618

Sure, git difftool. For example:

git difftool -t gvimdiff master^..master

If you're talking about git-gui - it uses gitk internally for viewing history. You can configure an external diff tool using Edit->Preferences. It's a little tricky to see where it's used: When viewing a difference normally (either by selecting a commit or using the various "Diff this -> selected" options), using "Patch" view on the right-hand panel, right-click a file and select "External Diff". This will use the diff tool you configured.

Upvotes: 5

Related Questions