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

improve the git branch info details #1

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

Conversation

paco0x
Copy link

@paco0x paco0x commented Oct 12, 2017

this patch use fish's __fish_git_prompt funciton to get more details in a git repo, it improves the following:

  1. show the commit instead of empty branch when checkout to a detached commit
  2. show the progress detail when doing rebase|merge|stash process
    eg. run git rebase -i HEAD~3, it will show the branch name with a
    rebase step such as (master|REBASE-i1/3)

Signed-off-by: Penghui Liao [email protected]

@paco0x
Copy link
Author

paco0x commented Oct 12, 2017

this is what it will looks like when doing commands like git checkout XX or git rebase -i HEAD~2

screen shot 2017-10-12 at 17 11 30

screen shot 2017-10-12 at 17 11 51

@paco0x
Copy link
Author

paco0x commented Dec 19, 2017

@tanob @kirach @bpinto anyone can review this?

@paco0x paco0x force-pushed the improvement/get-more-pricise-branch-info branch from 41cf67a to 34587dc Compare June 20, 2019 09:19
@paco0x
Copy link
Author

paco0x commented Jun 20, 2019

ping @bobthecow @sagebind

Copy link
Member

@scorphus scorphus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi!

I stumbled upon this one while browsing through issues and PRs. Sorry for the huge delay.

Would you be willing to fix those conflicts?

Thanks.

this patch use fish's `__fish_git_prompt` funciton to get more details
in a git repo, it improves the following:

1. show the commit instead of empty branch when checkout to a detached
commit
2. show the progress detail when doing rebase|merge|stash process
   eg. git rebase -i HEAD~3, then it will show the branch name with a
   rebase step such as "(master|REBASE-i1/3)"

Signed-off-by: Penghui Liao <[email protected]>
@paco0x paco0x force-pushed the improvement/get-more-pricise-branch-info branch from 34587dc to 295bdac Compare September 13, 2021 08:52
@paco0x
Copy link
Author

paco0x commented Sep 13, 2021

Updated. @scorphus

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.

2 participants