Download:
child 133:1b82b9501856
parent 131:642440fd7edb
132:f5a8f3d36842
Anton Shestakov <av6@dwimlabs.net>, Sat, 29 Oct 2016 10:59:26 +0800
.bash_prompt: use if instead of `test || cmd`

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
.bash_prompt file | annotate | diff | comparison | revisions
--- a/.bash_prompt Sat Oct 29 10:58:50 2016 +0800
+++ b/.bash_prompt Sat Oct 29 10:59:26 2016 +0800
@@ -78,8 +78,8 @@
local REV=${PARENTS[0]}
local MERGEREV=${PARENTS[1]}
- [ -z "$MERGEREV" ] || MERGEREV="+$MERGEREV"
if [[ $BRANCH = 'default' ]] ; then BRANCH='' ; fi
+ if [[ $MERGEREV ]] ; then MERGEREV="+$MERGEREV" ; fi
case "$COMMIT" in
*'(clean)'*)
COMMIT=''