: nply/git-summary

commit 1728751a9bad7443f38fc27196c9fe33084d19af
parent e5aa3b72d04f990cf96849a51b14c88f7101c4c7
Author: Mirko Ledda <mko.ledda@gmail.com>
Date: Sun, 7 Jan 2018 02:27:35 -0800

reordered function in header
1 file changed, 9 insertions(+), 5 deletions(-)
M
git-summary
|
14
+++++++++-----
diff --git a/git-summary b/git-summary
@@ -7,9 +7,10 @@
 # Freely distributed under the MIT license. 2018@MirkoLedda
 
 # Colorcode
-GREEN='\e[1;32m'
-ORANGE='\e[1;33m'
-RED='\e[1;31m'
+GREEN='\e[0;32m'
+ORANGE='\e[0;33m'
+RED='\e[0;31m'
+PURPLE='\e[0;35m'
 NC='\e[0m' # No Color
 
 usage() {

@@ -115,7 +116,6 @@ print_header () {
     local template="$1"
     local max_repo_len=$2
     local max_branch_len=$3
-    printf "$template\n" $NC repo branch state
     print_divider () {
         printf '=%.0s' $(seq 1 $max_repo_len)
         printf '  '

@@ -123,7 +123,11 @@ print_header () {
         printf '  '
         printf '=%.0s' $(seq 1 5)
         printf '\n'
-    } ; print_divider
+    };
+
+    echo
+    printf "$template\n" $NC Repository Branch State
+    print_divider
 }