Skip to content

how to diff two branches #250

@weakish

Description

@weakish

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions