Skip to content

Commit

Permalink
Use color and --stat for status command
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Oct 12, 2017
1 parent 1ff2f8f commit d029991
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,17 +123,17 @@ function op {
true
elif [ -n "$GIT" ]
then
git -C source diff --name-status
git -C source diff --stat --color
fi
;;
status_origin)
if [ -n "$GIT" ]
then
if [ -n "$BRANCH" ]
then
git -C source diff --name-status "origin/$BRANCH"
git -C source diff --stat --color "origin/$BRANCH"
else
git -C source diff --name-status "origin/master"
git -C source diff --stat --color "origin/master"
fi
fi
;;
Expand All @@ -142,9 +142,9 @@ function op {
then
if [ -n "$BRANCH" ]
then
git -C source diff --name-status "upstream/$BRANCH"
git -C source diff --stat --color "upstream/$BRANCH"
else
git -C source diff --name-status "upstream/master"
git -C source diff --stat --color "upstream/master"
fi
fi
;;
Expand Down

0 comments on commit d029991

Please sign in to comment.