Skip to content
Snippets Groups Projects
Commit 684febc4 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'atlas_merge' into 'main'

atlas_git_merge: add --all option to disable ignore list

See merge request atlas/athena!70927
parents d4d23ee6 b5bdb5c0
No related branches found
No related tags found
No related merge requests found
......@@ -18,21 +18,41 @@ ignore=(
usage() {
cat <<EOF
Usage: atlas_git_merge.sh source [target]
Usage: atlas_git_merge.sh [--all] source [target]
Merge git source branch into target applying a standard ignore list.
Run this within a full athena repository checkout.
source git source branch (e.g. 24.0)
target git target branch [${target}]
The following directories/files are ignored in merges:
The following directories/files are ignored in merges (unless --all):
EOF
for files in "${ignore[@]}"; do
echo " - ${files}"
done
}
if [[ $# -eq 0 ]] || [[ $# -gt 2 ]] || [[ "$1" == "-h" ]] || [[ "$1" == "--help" ]]; then
while [[ $# -gt 0 ]]; do
case $1 in
--all)
ignore=()
shift
;;
-h|--help)
usage
exit 1
;;
-*|--*)
echo "Unknown option $1"
usage
exit 1
;;
*) # only positional args left
break
esac
done
if [[ $# -eq 0 ]] || [[ $# -gt 2 ]]; then
usage
exit 1
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment