mojotech / mojotech/pullr

Better default 'into' branch

Open
#51 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
32
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Instead of defaulting to origin/master, default to local master's upstream branch. In 99.9% of cases, this will be master. Sometimes, though, a user might want to set their local master to some faux-master topic branch.

git rev-parse --abbrev-ref --symbolic-full-name "master@{u}"

will return origin/master.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the code that chooses the default into branch and inspect how it currently uses origin/master. Try git rev-parse --abbrev-ref --symbolic-full-name "master@{u}" in a repository with an upstream configured; done means the default follows local master's upstream branch while preserving the existing behavior in the usual case.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, javascript
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.