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

Let the remote tracking branch be configurable #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

m007
Copy link

@m007 m007 commented Jan 29, 2020

This commit allows the user to define a per repository or per branch
specific configuration of which branch git-radar compares the current
branch to. If no branch is configured explicitly "origin/master" will
be used (being backwards compatible with the current behaviour).

A branch specific remote tracking branch may be configured by executing

git config --local branch."$(git rev-parse --abbrev-ref HEAD)".git-radar-tracked-remote origin/my-branch-to-compare-to

A repository specific remote tracking may be configured by executing

git config --local git-radar.tracked-remote origin/my-branch-to-compare-to

A branch specific setting will overwrite a repository specific
configuration (which will overwrite the default, i.e origin/master).

This commit allows the user to define a per repository or per branch
specific configuration of which branch git-radar compares the current
branch to. If no branch is configured explicitly "origin/master" will
be used (being backwards compatible with the current behaviour).

A branch specific remote tracking branch may be configured by executing

    git config --local branch."$(git rev-parse --abbrev-ref HEAD)".git-radar-tracked-remote origin/my-branch-to-compare-to

A repository specific remote tracking may be configured by executing

    git config --local git-radar.tracked-remote origin/my-branch-to-compare-to

A branch specific setting will overwrite a repository specific
configuration (which will overwrite the default, i.e origin/master).
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

Successfully merging this pull request may close these issues.

None yet

1 participant