Intégration de la branche release-1.16.0

This commit is contained in:
Jephté Clain 2015-06-04 22:14:30 +04:00
commit 71dd907b7c
3 changed files with 24 additions and 2 deletions

View File

@ -1,3 +1,8 @@
## Version 1.16.0 du 04/06/2015-22:14
4a15085 Intégration de la branche verbose-update
8a27561 pu: afficher un message s'il y a des modifications locales
## Version 1.15.0 du 22/05/2015-17:03
e715087 Intégration de la branche update-upassword

View File

@ -1 +1 @@
1.15.0
1.16.0

View File

@ -461,7 +461,24 @@ function git_update() {
git fetch -p "$@" || return
git_check_cleancheckout || return 0
if ! git_check_cleancheckout; then
branch="$(git_get_branch)"
remote="$(git_get_branch_remote "$branch")"
rbranch="$(git_get_branch_rbranch "$branch" "$remote")"
pbranch="${rbranch#refs/remotes/}"
if [ -z "$remote" -o -z "$rbranch" ]; then
echo "Note: there are uncommitted local changes"
return 0
elif git_is_ancestor "$branch" "$rbranch"; then
echo "* Uncommitted changes, unwilling to fast-forward local branch $branch from $pbranch"
else
echo "* Cannot fast-forward local branch $branch from $pbranch"
echo " (and there are uncommitted local changes)"
fi
echo "Try to merge manually with: git merge $pbranch"
return 0
fi
orig_branch="$(git_get_branch)"
array_from_lines branches "$(git_list_branches)"
for branch in "${branches[@]}"; do