summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYvan Roux <yvan.roux@linaro.org>2015-03-13 13:17:43 +0100
committerYvan Roux <yvan.roux@linaro.org>2015-03-13 13:17:43 +0100
commit65b2fd241d17bdff8d29e73ee2796c40c5c9b851 (patch)
tree9e9e4592dc66cdbd636c891a834650f80c3eb0ce
parent804b383eb991e71232e615c9505b0d0dfbcec274 (diff)
downloadbackflip-65b2fd241d17bdff8d29e73ee2796c40c5c9b851.tar.gz
Add user's first name to the backport branch name.
-rwxr-xr-xbackflip3
1 files changed, 2 insertions, 1 deletions
diff --git a/backflip b/backflip
index 60bee04..7acbe90 100755
--- a/backflip
+++ b/backflip
@@ -14,6 +14,7 @@ LINARO_REF_BRANCH=linaro-${VERSION}-branch
DATE=`date +%Y-%m-%d`
NAME=`git config user.name`
+FNAME=`echo ${NAME} | cut -d ' ' -f 1`
EMAIL=`git config user.email`
EDITOR="${EDITOR:-vim}"
@@ -106,7 +107,7 @@ fi
# ==============================================================================
print_step "Branch/Commit/Push/Review"
# ==============================================================================
-bname=${VERSION}-backport-${1}
+bname=${FNAME}-${VERSION}-backport-${1}
ask "${bold}Create backport branch [Y/n] ?" user_bc
if [ "$user_bc" != "n" ]; then
ask "${bold}Change name (${blue}${bname}${NC}${bold}) [N/y] ?" user_bname