go-git icon indicating copy to clipboard operation
go-git copied to clipboard

How to diff <branch> <branch>?

Open Daniel-Wang opened this issue 5 years ago • 0 comments

I looked through all the examples but couldn't find the way to get the hash of a branch, and then use Tree.Diff to get the diff of two branches.

What would the code look like to do this?

Daniel-Wang avatar Dec 17 '19 16:12 Daniel-Wang