Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to diff two branches #250

Open
weakish opened this issue Sep 13, 2022 · 0 comments
Open

how to diff two branches #250

weakish opened this issue Sep 13, 2022 · 0 comments

Comments

@weakish
Copy link

weakish commented Sep 13, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant