File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 60
60
[ $# = 0 ] && echo " Error: branch name(s) required" >&2 && return 1
61
61
62
62
# ## List of failed-to-kill objects:
63
- # ## "[MRL ](RESCODE)\tPATH\tBRANCH\tREASON"
63
+ # ## "[MRLP ](RESCODE)\tPATH\tBRANCH\tREASON"
64
64
FAILED=" "
65
65
66
66
branchkill () {
67
67
CURBRANCH=" ` git branch | egrep ' ^\* ' | sed ' s,^\* ,,' ` " || return
68
68
[ -n " $CURBRANCH " ] || return
69
+ echo " === ` date` : Currently checked out branch is '$CURBRANCH '"
69
70
70
71
REMOTES=" ` git remote -v | egrep ' push' | awk ' {print $1}' ` " || REMOTES=" "
72
+ echo " === ` date` : Known remote repos are: ` echo " $REMOTES " | tr ' \n' ' ' ` "
71
73
72
74
RES=0
73
75
for B in " $@ " ; do
76
+ echo " "
77
+ echo " === ` date` : Processing a branch named '$B '"
74
78
if [ " $B " = " $CURBRANCH " -o " $B " = master ] ; then
75
79
echo " Error: can not remove master branch, or current branch: '$B '" \
76
80
" (please change into some other)" >&2
You can’t perform that action at this time.
0 commit comments