From 54857b2b83d3ede55b0e887637753d7d7681ebb6 Mon Sep 17 00:00:00 2001 From: Eragos Date: Tue, 12 Jul 2016 00:03:39 +0200 Subject: [PATCH] test ## To make a commit, type your commit message and press SUPER-ENTER. To cancel ## the commit, close the window. To sign off on the commit, press SUPER-S. ## You may also reference or close a GitHub issue with this commit. To do so, ## type `#` followed by the `tab` key. You will be shown a list of issues ## related to the current repo. You may also type `owner/repo#` plus the `tab` ## key to reference an issue in a different GitHub repo. diff --git a/functions b/functions index 52bf5ee..a8717f3 100644 --- a/functions +++ b/functions @@ -3,7 +3,7 @@ udot() { info=$(git --no-pager log --pretty="%h by %an <%ae> on %cd" -1 --abbrev-commit) local=$(git --no-pager log --pretty="%H" -1) remote=$(git ls-remote origin | awk "/HEAD/ {print \$1}") - gstatus=$(git status -s) + gstatus=$(git status --porcelain) echo -e "" echo -e ' ____ U ___ u _____ _____ _ U _____ u ____ ' @@ -17,7 +17,7 @@ udot() { echo -e "$info" echo -e "" - if [ "$status" != "" ]; then + if [ -n "$status" ]; then echo -e "Local changes:" echo -e "$gstatus" echo -e "" --- functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions b/functions index 52bf5ee..a8717f3 100644 --- a/functions +++ b/functions @@ -3,7 +3,7 @@ udot() { info=$(git --no-pager log --pretty="%h by %an <%ae> on %cd" -1 --abbrev-commit) local=$(git --no-pager log --pretty="%H" -1) remote=$(git ls-remote origin | awk "/HEAD/ {print \$1}") - gstatus=$(git status -s) + gstatus=$(git status --porcelain) echo -e "" echo -e ' ____ U ___ u _____ _____ _ U _____ u ____ ' @@ -17,7 +17,7 @@ udot() { echo -e "$info" echo -e "" - if [ "$status" != "" ]; then + if [ -n "$status" ]; then echo -e "Local changes:" echo -e "$gstatus" echo -e ""