From 234ee68005362701ef91aa318445eee6441fb770 Mon Sep 17 00:00:00 2001 From: inv Date: Thu, 3 Nov 2022 22:26:10 +0300 Subject: [PATCH] Update --- get.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/get.sh b/get.sh index 44a2af6353..eb6e180557 100644 --- a/get.sh +++ b/get.sh @@ -3,15 +3,17 @@ problem_file=Adaptor2d_Curve2d.cxx list="master integration" -echo "Getting branches hash" +echo "Getting commit hash" for name in $list ; do echo $name export shorthash_$name=$(git rev-parse $name) echo shorthash_$name=$(eval echo "\$shorthash_${name}") done +echo "Getting list of commits between master and integration" list=$(git rev-list --ancestry-path ${shorthash_master}..${shorthash_integration}) +echo "Getting commit whose hash matches the hash of commit with problematic file" for hash in $list ; do list_changed_files=$(git diff-tree --no-commit-id --name-only -r $hash | sed 's/\// /g' | awk '{ print $NF }') for changed_file in $list_changed_files; do -- 2.39.5