Browse files

Fixed incorrect color flag

  • Loading branch information...
1 parent 871f5ed commit cf3da5a75c0db58263c5fe6b8620b9731ba8ae23 @adamgibbins adamgibbins committed Aug 22, 2010
Showing with 12 additions and 12 deletions.
  1. +1 −1 git-flow-feature
  2. +2 −2 git-flow-hotfix
  3. +2 −2 git-flow-release
  4. +2 −2 git-flow-support
  5. +5 −5 gitflow-common
View
2 git-flow-feature
@@ -74,7 +74,7 @@ cmd_list() {
warn ""
exit 0
fi
- current_branch=$(git branch --color=never | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g')
+ current_branch=$(git branch --no-color | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g')
short_names=$(echo "$feature_branches" | sed "s ^$PREFIX g")
# determine column width first
View
4 git-flow-hotfix
@@ -69,7 +69,7 @@ cmd_list() {
warn ""
exit 0
fi
- current_branch=$(git branch --color=never | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g')
+ current_branch=$(git branch --no-color | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g')
short_names=$(echo "$hotfix_branches" | sed "s ^$PREFIX g")
# determine column width first
@@ -137,7 +137,7 @@ require_version_arg() {
}
require_base_is_on_master() {
- if ! git branch --color=never --contains "$BASE" 2>/dev/null \
+ if ! git branch --no-color --contains "$BASE" 2>/dev/null \
| sed 's/[* ] //g' \
| grep -q "^$MASTER_BRANCH\$"; then
die "fatal: Given base '$BASE' is not a valid commit on '$MASTER_BRANCH'."
View
4 git-flow-release
@@ -70,7 +70,7 @@ cmd_list() {
exit 0
fi
- current_branch=$(git branch --color=never | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g')
+ current_branch=$(git branch --no-color | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g')
short_names=$(echo "$release_branches" | sed "s ^$PREFIX g")
# determine column width first
@@ -132,7 +132,7 @@ require_version_arg() {
}
require_base_is_on_develop() {
- if ! git branch --color=never --contains "$BASE" 2>/dev/null \
+ if ! git branch --no-color --contains "$BASE" 2>/dev/null \
| sed 's/[* ] //g' \
| grep -q "^$DEVELOP_BRANCH\$"; then
die "fatal: Given base '$BASE' is not a valid commit on '$DEVELOP_BRANCH'."
View
4 git-flow-support
@@ -71,7 +71,7 @@ cmd_list() {
warn ""
exit 0
fi
- current_branch=$(git branch --color=never | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g')
+ current_branch=$(git branch --no-color | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g')
short_names=$(echo "$support_branches" | sed "s ^$PREFIX g")
# determine column width first
@@ -148,7 +148,7 @@ require_base_arg() {
}
require_base_is_on_master() {
- if ! git branch --color=never --contains "$BASE" 2>/dev/null \
+ if ! git branch --no-color --contains "$BASE" 2>/dev/null \
| sed 's/[* ] //g' \
| grep -q "^$MASTER_BRANCH\$"; then
die "fatal: Given base '$BASE' is not a valid commit on '$MASTER_BRANCH'."
View
10 gitflow-common
@@ -66,13 +66,13 @@ noflag() { local FLAG; eval FLAG='$FLAGS_'$1; [ $FLAG -ne $FLAGS_TRUE ]; }
# Git specific common functionality
#
-git_local_branches() { git branch --color=never | sed 's/^[* ] //'; }
-git_remote_branches() { git branch -r --color=never | sed 's/^[* ] //'; }
-git_all_branches() { ( git branch --color=never; git branch -r --color=never) | sed 's/^[* ] //'; }
+git_local_branches() { git branch --no-color | sed 's/^[* ] //'; }
+git_remote_branches() { git branch -r --no-color | sed 's/^[* ] //'; }
+git_all_branches() { ( git branch --no-color; git branch -r --no-color) | sed 's/^[* ] //'; }
git_all_tags() { git tag; }
git_current_branch() {
- git branch --color=never | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g'
+ git branch --no-color | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g'
}
git_is_clean_working_tree() {
@@ -140,7 +140,7 @@ git_compare_branches() {
git_is_branch_merged_into() {
local subject=$1
local base=$2
- local all_merges=$(git branch --color=never --contains $subject | sed 's/^[* ] //')
+ local all_merges=$(git branch --no-color --contains $subject | sed 's/^[* ] //')
has $base $all_merges
}

0 comments on commit cf3da5a

Please sign in to comment.