Skip to content

Commit

Permalink
Indicate which script is producing output (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst authored May 12, 2024
1 parent afd05c1 commit c12e5df
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/scripts/merge_tools/git_hires_merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ retVal=$?

# report conflicts
if [ "$retVal" -ne 0 ]; then
echo "Conflict"
echo "git_hires_merge: Conflict"
fi

exit "$retVal"
2 changes: 1 addition & 1 deletion src/scripts/merge_tools/gitmerge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ retVal=$?

# report conflicts
if [ $retVal -ne 0 ]; then
echo "Conflict"
echo "gitmerge.sh: Conflict"
fi

exit $retVal
2 changes: 1 addition & 1 deletion src/scripts/merge_tools/gitmerge_ort_adjacent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi

cd "$clone_dir" || exit 1
if ! "$MERGE_SCRIPTS_DIR"/resolve-adjacent-conflicts; then
echo "Conflict"
echo "gitmerge_ort_adjacent.sh: Conflict"
exit 1
fi

Expand Down
2 changes: 1 addition & 1 deletion src/scripts/merge_tools/gitmerge_ort_imports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ retVal=$?

# report conflicts
if [ "$retVal" -ne 0 ]; then
echo "Conflict"
echo "gitmerge_ort_imports.sh: Conflict"
fi

exit "$retVal"
3 changes: 2 additions & 1 deletion src/scripts/merge_tools/gitmerge_ort_imports_ignorespace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ branch1=$2
branch2=$3
strategy="-Xignore-space-change"

# shellcheck disable=SC2153 # "JAVA17_HOME is not a misspelling of "JAVA_HOME"
export JAVA_HOME="$JAVA17_HOME"

cd "$clone_dir" || exit 1
Expand All @@ -23,7 +24,7 @@ retVal=$?

# report conflicts
if [ "$retVal" -ne 0 ]; then
echo "Conflict"
echo "gitmerge_ort_imports_ingorespace.sh: Conflict"
fi

exit "$retVal"
1 change: 1 addition & 0 deletions src/scripts/merge_tools/intellimerge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ rm -rf $temp_dir
# report conflicts
conflict_markers=$(grep -rE '^(<<<<<<<|=======|>>>>>>>$)' "$clone_dir" | wc -l)
if [ "$conflict_markers" -ne "$initial_conflict_markers" ]; then
echo "intellimerge.sh"
echo "Conflict markers changed"
echo "Initial conflict markers: $initial_conflict_markers"
echo "Final conflict markers: $conflict_markers"
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/merge_tools/spork.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ retVal=$?

# report conflicts
if [ $retVal -ne 0 ]; then
echo "Conflict"
echo "spork.sh: Conflict"
fi

exit $retVal

0 comments on commit c12e5df

Please sign in to comment.