gitless icon indicating copy to clipboard operation
gitless copied to clipboard

how to diff two branches

Open weakish opened this issue 3 years ago • 0 comments
trafficstars

It seems that gl diff only accepts files as arguments. So to diff two branches, I have to move HEAD back and forth?

gl switch b
gl branch -sh a
gl diff
gl branch -sh 2b5ec99 

If I do not want to memorize or copy-paste the revision hash, I need to create a branch as a bookmark, then delete it afterwards.

gl switch b
gl switch -c tmp
gl branch -sh a
gl diff
gl branch -sh tmp
gl branch -d tmp

weakish avatar Sep 13 '22 09:09 weakish