We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6de5c31 commit d67a127Copy full SHA for d67a127
git/git-show-merge-resolution.sh
@@ -24,9 +24,9 @@ theirs=$1^2
24
base=$(git merge-base $ours $theirs)
25
26
if $conflicts_only; then
27
- files=$(git show $1 | grep "diff --cc" | cut -d " " -f 3)
+ files=$(git show $1 | grep "diff --cc" | cut -d " " -f 3-)
28
else
29
- files=$(git merge-tree $base $ours $theirs | grep -A 3 "changed in both" | grep "base" | cut -d " " -f 8)
+ files=$(git merge-tree $base $ours $theirs | grep -A 3 "changed in both" | grep "base" | cut -d " " -f 8-)
30
fi
31
32
if [ -n "$files" ]; then
@@ -54,8 +54,8 @@ else
54
55
56
57
-for f in $files; do
58
- echo $f
+for f in "$files"; do
+ echo "$f"
59
done
60
61
TOOL_MODE=merge
0 commit comments