GitXplorerGitXplorer
s

perl-git-prompt

public
9 stars
3 forks
0 issues

Commits

List of commits on branch master.
Unverified
41170b061f313d33cc571f2aa18dff85d19ae512

Capture if we're mid rebase as well

sscottchiefbaker committed a year ago
Unverified
a7f7ef09948fee4d385f440a63b5d645ae386481

Add support to show when you're in a merge conflict

sscottchiefbaker committed a year ago
Unverified
2f56e5f49c6043390d66a14d2bdff3b9029b3222

Capture if there is a merge conflict

sscottchiefbaker committed a year ago
Unverified
270d325f49211201497d4ce798a68a682f06a80e

Only print the dirty num if we have one

sscottchiefbaker committed 2 years ago
Unverified
4a6ebd11cef40ce87527200965a901031fcd3383

Check for staged differently

sscottchiefbaker committed 2 years ago
Unverified
47346e3aa55d2c9b7e7997def2a04a8aa4b156fa

BUGFIX: If both were 0 we were triggering which is not what we want

sscottchiefbaker committed 2 years ago

README

The README file for this repository.

perl-git-prompt

Perl script to show current Git branch and changeset status in the prompt.

Usage

Put the following in your ~/.bashrc

# Add git status to the existing bash prompt
GIT_PROMPT_PATH="$HOME/github/perl-git-prompt/git-prompt.pl"
if [[ $GIT_PROMPT_PATH != *$PS1* ]]; then
    export PS1="\$($GIT_PROMPT_PATH)"$PS1
fi

Examples:

Example Prompt

  • You are on the vader branch.
  • Your local repo is +1 commit ahead of the remote
  • There are 5 files in the staging area

Example Prompt

  • You are on the vader branch.
  • Your local repo is on the same commit as the remote
  • There are no files in the staging area

Note:

This script assumes you have 256 color terminal support. It's 2013, you should have a 256 color terminal. If you still have a 16 color terminal no guarantees how this will look.