Skip to content

Compare without args #1

@eitah

Description

@eitah

Could it assume current branch and current default if not supplied? I made an alias on my local machine but maybe i didn't understand what your intention was here.

you need to install the gh-browse-compare extension

compare() {
echo gh compare "$(git config --get init.defaultBranch)" to "$(git branch --show-current)"
gh compare "$(git config --get init.defaultBranch)".."$(git branch --show-current)"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions