I would like to run git difftool HEAD~3.. path/to/file and have git open the difftool for each of those three commits so that I can see a side-by-side view of each commit.
How would I go about getting git-difftool to do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This would accomplish what you describe:
Want to automate this process? Is it always three commits? Do you want a three-way merge?
Update:
If the answers are yes-yes-no, the solution will be:
Update:
If the answers are yes-no-yes, it is essentially what @ruffin asks here. See my answer there.