mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
Improve Rebase branch script (#4742)
* Improve Rebase branch script * Improve Rebase branch script * add comment
This commit is contained in:
committed by
Maurizio Vitale
parent
80da3e9932
commit
514b31d975
@@ -2,6 +2,7 @@
|
||||
|
||||
eval BRANCH_NAME=""
|
||||
eval DIRECTORY="tmp"
|
||||
eval HEAD_SHA_BRANCH=""
|
||||
|
||||
show_help() {
|
||||
echo "Usage: affected-folder.sh"
|
||||
@@ -38,5 +39,11 @@ then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo ${FOLDER_NAME}
|
||||
HEAD_SHA_BRANCH="$(git merge-base origin/$BRANCH_NAME HEAD)"
|
||||
#echo "Branch name $BRANCH_NAME HEAD sha " $HEAD_SHA_BRANCH
|
||||
|
||||
if git diff --name-only $HEAD_SHA_BRANCH HEAD | grep "^${FOLDER_NAME}" &> /dev/null
|
||||
then
|
||||
echo ${FOLDER_NAME}
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user