summaryrefslogtreecommitdiffstats
path: root/test-commits.sh (follow)
AgeCommit message (Collapse)AuthorFilesLines
2015-08-30Remove color tests from test-commits as test-colors covers itMichael Allen1-14/+10
2015-08-26Bypass PS1s conversion of \[Michael Allen1-3/+3
In PS1 you need to escape non-printing characters, like the color codes. The standard way is wrapping it in `\[` and `\]`. But for a dynamic prompt, i.e. one that renders the results of a function every time the prompt renders, that `\[` will be output as literals. To fix this we bypass the conversion and wrap our non-printing characters in the desired characters directly: `\[` -> `\x01` `\]` -> `\x02`
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-19Rename to git-radarMichael Allen1-1/+1
2015-08-11Switch to printf for it's reliabilityMichael Allen1-3/+3
2015-08-10Move local commit test to commits test fileMichael Allen1-0/+56
2015-06-03fixed issue with branches that contain other branch namesMichael Allen1-0/+68
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 Allen1-0/+41
2015-03-02speed up remote_behind/ahead by not checking if tracking = remoteMichael Allen1-0/+25
2015-03-01provide a default for remote_branch_name so we can be fasterMichael Allen1-2/+47
2015-02-16functions to get the commit difference between the branch on the remote and ↵Michael Allen1-0/+74
the master
2015-02-12find branch names and commits ahead or behindMichael Allen1-0/+118