Skip to content

Commit 0207828

Browse files
committed
git-branchkill : change output formatting
1 parent bebea4c commit 0207828

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git-branchkill

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ branchkill() {
7272
RES=0
7373
for B in "$@" ; do
7474
if [ "$B" = "$CURBRANCH" -o "$B" = master ] ; then
75-
echo "Error: can not remove master branch, or current branch $B" \
75+
echo "Error: can not remove master branch, or current branch: '$B'" \
7676
"(please change into some other)" >&2
7777
RES=2
7878
FAILED="$FAILED
7979
M($RES) `pwd` $B master branch, or current branch"
8080
else
8181
for R in $REMOTES ; do
82-
echo "Info: Removing remote branch $R/$B ..."
82+
echo "Info: Removing local reference to remote branch: '$R/$B' ..."
8383
_OUT="`$EXEC git branch -dr "$R/$B" 2>&1`"
8484
_RES=$?
8585
if echo "$_OUT" | egrep " branch '.*' not found" >/dev/null && [ "$_RES" != 0 ]; then
@@ -92,7 +92,7 @@ R($RES) `pwd` $B `echo ${_OUT} | tr '\n' ' '`"
9292
echo "$_OUT"
9393
done
9494

95-
echo "Info: Removing local branch $B ..."
95+
echo "Info: Removing local branch: '$B' ..."
9696
_OUT="`$EXEC git branch $LOCALKILL "$B" 2>&1`"
9797
_RES=$?
9898
if echo "$_OUT" | egrep " branch '.*' not found" >/dev/null && [ "$_RES" != 0 ]; then

0 commit comments

Comments
 (0)