summaryrefslogtreecommitdiffstats
path: root/test/test-commits.sh (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2021-08-23Remove unit testsMalfurious1-436/+0
I don't particularly wish to maintain these tests for a few reasons: * Many of them make assertions strictly about rendered text / UI * Many of them test external systems and touch the disk * There are platform-dependent details that complicate several tests. So, the tests are removed. Ideally, the main script is reworked into something simple enough it doesn't necessarily warrant heavy testing. Signed-off-by: Malfurious <m@lfurio.us>
2021-07-20Move test files to subdirectoryMalfurious1-0/+0
Signed-off-by: Malfurious <m@lfurio.us>
2021-03-24Update references to project name to git-sonarMalfurious1-1/+1
Signed-off-by: Malfurious <m@lfurio.us>
2015-09-17Added switch case for OS type in testsClaudio Bandera1-2/+12
2015-09-17Switch local commits to use prefixesMichael Allen1-9/+9
2015-09-16Test the new functions directlyMichael Allen1-0/+5
2015-08-30Fixed unittests for UbuntuClaudio Bandera1-5/+3
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-26Revert "bash prompt length fix: zero-length chars must be placed between \[ ↵Grigory Petrov1-3/+3
and \]" This reverts commit 0fe65ed830b5d1cdc5189230139b52f4c8aacfbc.
2015-08-26bash prompt length fix: zero-length chars must be placed between \[ and \]Grigory Petrov1-3/+3
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