Download:
child 134:85c4407dd781
parent 132:f5a8f3d36842
133:1b82b9501856
Anton Shestakov <av6@dwimlabs.net>, Sat, 29 Oct 2016 10:59:51 +0800
.bash_prompt: drop revision number if it's -1

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