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

Added 'branch status' command called 'bst' for very compact status about branches #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mu_repo/__docs__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
Shortcuts:

${START_COLOR}mu st ${RESET_COLOR}= Nice status message for all repos (always in parallel)
${START_COLOR}mu bst ${RESET_COLOR}= Compact branch status message for all repos
${START_COLOR}mu co branch ${RESET_COLOR}= git checkout branch
${START_COLOR}mu mu-branch ${RESET_COLOR}= git rev-parse --abbrev-ref HEAD (print current branch)
${START_COLOR}mu up ${RESET_COLOR}= git fetch origin curr_branch:refs/remotes/origin/curr_branch
Expand Down
5 changes: 5 additions & 0 deletions mu_repo/action_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ def Run(params, on_output=None):
if len(args) == 1:
args.insert(1, '-s')

elif arg0 == 'bst':
args[0] = 'for-each-ref'
args.insert(1,'--format="%(refname:short) %(upstream:track)"')
args.insert(2, 'refs/heads')

elif arg0 == 'co':
args[0] = 'checkout'

Expand Down