Skip to content
\n

However, the default repo.git.diff shows the diff with double dot. Is there a way to achieve triple dot diff using gitpython?
\nReference on double dot and triple dot diff: https://matthew-brett.github.io/pydagogue/git_diff_dots.html

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

Maybe this works?

\n
repo.git.diff(\"{}...{}\".format(commit_a, commit_b), ignore_blank_lines=True, ignore_space_at_eol=True)
","upvoteCount":2,"url":"https://github.com/gitpython-developers/GitPython/discussions/1406#discussioncomment-2074422"}}}

Is there a way to get tripple dot diff? #1406

Answered by Byron
nasifimtiazohi asked this question in Q&A
Discussion options

You must be logged in to vote

Maybe this works?

repo.git.diff("{}...{}".format(commit_a, commit_b), ignore_blank_lines=True, ignore_space_at_eol=True)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nasifimtiazohi
Comment options

Answer selected by Byron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants