diff options
| -rwxr-xr-x | git-sonar | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -439,25 +439,25 @@ usage() { echo " $GIT_SONAR_VERSION" echo "" echo "examples:" - echo -ne " $_git$_master$_endgit" + printf '%b' " $_git$_master$_endgit" echo " # You are on the master branch and everything is clean" - echo -ne " $_git$_not_upstream$_my_branch$_endgit" + printf '%b' " $_git$_not_upstream$_my_branch$_endgit" echo " # Fresh branch that we haven't pushed upstream" - echo -ne " $_git$_my_branch$_endgit 2$_untracked" + printf '%b' " $_git$_my_branch$_endgit 2$_untracked" echo " # Two files created that aren't tracked by git" - echo -ne " $_git$_my_branch$_endgit 1$_added_staged 3$_modified_unstaged" + printf '%b' " $_git$_my_branch$_endgit 1$_added_staged 3$_modified_unstaged" echo " # 1 new file staged to commit and 3 modifications that we still need to \`git add\`" - echo -ne " $_git$_2_from_master$_my_branch 3$_local_up$_endgit" + printf '%b' " $_git$_2_from_master$_my_branch 3$_local_up$_endgit" echo " # 3 commits made locally ready to push up while master is ahead of us by 2" - echo -ne " $_git$_diverged_from_master$_my_branch$_endgit" + printf '%b' " $_git$_diverged_from_master$_my_branch$_endgit" echo " # our commits pushed up, master and my-branch have diverged" - echo -ne " $_git$_detached$_endgit 2${_conflicted_them}3${_conflicted_us}" + printf '%b' " $_git$_detached$_endgit 2${_conflicted_them}3${_conflicted_us}" echo " # mid rebase, we are detached and have 3 conflicts caused by US and 2 caused by THEM" - echo -ne " $_git$_diverged_from_master$_my_branch 3${_local_diverged}5$_endgit" + printf '%b' " $_git$_diverged_from_master$_my_branch 3${_local_diverged}5$_endgit" echo " # rebase complete, our rewritten commits now need pushed up" - echo -ne " $_git$_ahead_master 3 $_my_branch$_endgit" + printf '%b' " $_git$_ahead_master 3 $_my_branch$_endgit" echo " # origin/my-branch is up to date with master and has our 3 commits waiting merge" - echo -ne " $_git$_master$_endgit 3$_stash" + printf '%b' " $_git$_master$_endgit 3$_stash" echo " # You have 3 stashes stored" echo "" |
