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

git-prompt.sh: add option to show repo name in prompt #102

Closed
wants to merge 1 commit into from

Conversation

ljonsson
Copy link

If GIT_PS1_SHOWREPONAME is set to a nonempty value the name of the current repo will be displayed in the prompt.

@azenla
Copy link

azenla commented Aug 27, 2014

From the description:

Git Source Code Mirror - This is a publish-only repository and all pull requests are ignored. Please follow Documentation/SubmittingPatches procedure for any of your improvements.

@@ -498,7 +508,7 @@ __git_ps1 ()
fi

local f="$w$i$s$u"
local gitstring="$c$b${f:+$z$f}$r$p"
local gitstring="$t$c$b${f:+$z$f}$r$p"
Copy link

Choose a reason for hiding this comment

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

gitstring="$c$b${f:+$z$f}$r$p"

Choose a reason for hiding this comment

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

http://github.com - automatic!
GitHub

@gitster
Copy link
Member

gitster commented May 12, 2015

Seeing no activity since the last review suggestion. Closing it.

Please do not hesitate to send a polished patch to git@vger.kernel.org for proper review and discussion.

Thanks.

@gitster gitster closed this May 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants