summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2015-08-25Added readme and licenseMichael Allen3-2/+143
2015-08-25Make fetches run async in the backgroundMichael Allen1-1/+1
2015-08-21Fix tests that broke since printf bash changeMichael Allen1-3/+3
The printf change in d5dbddf68c45dfff380d6e6767de401054024a19 caused the escape sequences to be returned differently. This commit fixes tests that were expecting the escape sequences to be changed from \\033 to \\E.
2015-08-19Decent readme with examples to show how to use git-radarMichael Allen1-8/+72
2015-08-19Make sure fetch is location independantMichael Allen1-1/+4
2015-08-19Ensure the control characters get evaluatedMichael Allen1-1/+1
2015-08-19Auto fetch repos so I don't have to rememberMichael Allen1-0/+2
2015-08-19Rename to git-radarMichael Allen10-8/+8
2015-08-19Remove unnecessary subshells from bash promptMichael Allen2-6/+11
In the zsh prompt we need to use '%s' on the printf to prevent the `${fg_bold[<color>]}` expressions from expanding before the colors have been loaded in. In the bash prompt this is unnecessary as the \\033 codes are base control characters, and so have no dependency they rely on.
2015-08-19Color zsh prompt slightly differentlyMichael Allen1-5/+5
2015-08-19Reduce the number of subshells, for performanceMichael Allen1-2/+7
2015-08-18Provide single entrypoint to make scriping easierMichael Allen1-0/+12
2015-08-18Fix up zsh promptMichael Allen1-7/+6
2015-08-18Switch to the more common -E grep regex flagMichael Allen2-21/+13
2015-08-14Split prompt command into bash and zshMichael Allen2-6/+15
The shebang in the top of a file dictates it's runtime. To load the zsh colors stuff you need to be executing in Zsh but then I couldn't support bash so I've split the prompt file into one for each.
2015-08-11Example of how to use the git-base.sh libraryMichael Allen3-6/+46
2015-08-11Switch to printf for it's reliabilityMichael Allen2-42/+42
2015-08-11Provide a bash way to show remote commitsMichael Allen2-2/+28
2015-08-10Move local commit test to commits test fileMichael Allen2-73/+56
2015-08-10Remove unnecessary is_repo check from commit functionsMichael Allen1-26/+20
2015-08-10Test the bash and zsh commit functionMichael Allen1-0/+73
2015-08-10don't do the remote call in the local commit diffMichael Allen1-4/+0
2015-08-06Allow custom separators between partsMichael Allen1-14/+22
2015-08-06Preserve whitespace in function resultsMichael Allen2-23/+5
2015-08-06Provide bash colors for local commit diffsMichael Allen2-1/+27
2015-08-06Provide example of local commit differenceMichael Allen2-1/+27
2015-08-06Provide colors for bash as well as ZshMichael Allen2-1/+37
2015-08-02Include color prefixes in zsh status promptMichael Allen1-4/+4
2015-08-02Fixed missing staged and unstaged modifications caseMichael Allen2-4/+5
2015-07-24remove colors and use them in a function so that it isn't tied down to ZSHMichael Allen2-6/+37
2015-07-23provide the ability to surround letter in a status with a colorMichael Allen3-3/+34
2015-07-23remove unnecessary added/modified/etcMichael Allen3-67/+45
2015-07-23include new status tests in the full test runMichael Allen1-0/+1
2015-07-21cleaned up the status line issues and provided tests for themMichael Allen2-15/+162
2015-06-21simplified the commit comparison functionsMichael Allen1-32/+4
2015-06-03fixed issue with branches that contain other branch namesMichael Allen2-1/+69
When a remote branch begins with or ends with the local branch name then the commits against diff functions can report the commits for the remote branch instead of your local branch, e.g.: I have local branch `foo` with 1 commit ahead of master and a remote branch `foobar` with 2 ahead of master. The prompt will report 2 commits instead of the true 1 commit because the `grep $branch_name` returns the `foobar` branch. Simple fix is to ensure we grep for the full `/<branch_name>$` so: branch_name = `foo` `origin/foo` matches `other/foo` matches `origin/foobar` doesn't match `origin/barfoo` doesn't match
2015-05-07cleanly support repos with no master to trackMichael Allen2-4/+53
2015-03-10didn't silence properlyMichael Allen1-3/+3
2015-03-10typoMichael Allen1-3/+3
2015-03-10clean code and silence git callsMichael Allen1-17/+4
2015-03-10list files from the root, not current dirMichael Allen2-1/+7
2015-03-10try to tell if a dir is dirtyMichael Allen2-0/+73
2015-03-09prevent bad grep usage when no branch_nameMichael Allen2-9/+11
2015-03-09revert to grepping as when two remote branches are up to one commit things ↵Michael Allen1-2/+2
get weird
2015-03-09ensure remote_branch_name is fails quietlyMichael Allen2-1/+22
2015-03-09quieten fatal remote_branch_name callsMichael Allen1-1/+2
2015-03-09remove unnecessary is_repo checksMichael Allen1-16/+12
2015-03-09autocompletes better for faster test runsMichael Allen1-0/+0
2015-03-09sped up remote_branch_name by not needing to call branch_nameMichael Allen1-1/+1
2015-03-02speed up remote_behind/ahead by not checking if tracking = remoteMichael Allen2-2/+29