summaryrefslogtreecommitdiffstats
path: root/test-commits.sh (follow)
AgeCommit message (Collapse)AuthorFilesLines
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