|
5 | 5 | # Resolve two or more trees.
|
6 | 6 | #
|
7 | 7 |
|
| 8 | +. git-sh-i18n |
| 9 | + |
8 | 10 | LF='
|
9 | 11 | '
|
10 | 12 |
|
|
46 | 48 |
|
47 | 49 | if ! git diff-index --quiet --cached HEAD --
|
48 | 50 | then
|
49 |
| - echo "Error: Your local changes to the following files would be overwritten by merge" |
| 51 | + gettextln "Error: Your local changes to the following files would be overwritten by merge" |
50 | 52 | git diff-index --cached --name-only HEAD -- | sed -e 's/^/ /'
|
51 | 53 | exit 2
|
52 | 54 | fi
|
|
61 | 63 | # We allow only last one to have a hand-resolvable
|
62 | 64 | # conflicts. Last round failed and we still had
|
63 | 65 | # a head to merge.
|
64 |
| - echo "Automated merge did not work." |
65 |
| - echo "Should not be doing an Octopus." |
| 66 | + gettextln "Automated merge did not work." |
| 67 | + gettextln "Should not be doing an Octopus." |
66 | 68 | exit 2
|
67 | 69 | esac
|
68 | 70 |
|
|
73 | 75 | eval pretty_name=\${GITHEAD_$SHA1_UP:-$pretty_name}
|
74 | 76 | fi
|
75 | 77 | common=$(git merge-base --all $SHA1 $MRC) ||
|
76 |
| - die "Unable to find common commit with $pretty_name" |
| 78 | + die "$(eval_gettext "Unable to find common commit with \$pretty_name")" |
77 | 79 |
|
78 | 80 | case "$LF$common$LF" in
|
79 | 81 | *"$LF$SHA1$LF"*)
|
80 |
| - echo "Already up-to-date with $pretty_name" |
| 82 | + eval_gettextln "Already up-to-date with \$pretty_name" |
81 | 83 | continue
|
82 | 84 | ;;
|
83 | 85 | esac
|
|
89 | 91 | # tree as the intermediate result of the merge.
|
90 | 92 | # We still need to count this as part of the parent set.
|
91 | 93 |
|
92 |
| - echo "Fast-forwarding to: $pretty_name" |
| 94 | + eval_gettextln "Fast-forwarding to: \$pretty_name" |
93 | 95 | git read-tree -u -m $head $SHA1 || exit
|
94 | 96 | MRC=$SHA1 MRT=$(git write-tree)
|
95 | 97 | continue
|
96 | 98 | fi
|
97 | 99 |
|
98 | 100 | NON_FF_MERGE=1
|
99 | 101 |
|
100 |
| - echo "Trying simple merge with $pretty_name" |
| 102 | + eval_gettextln "Trying simple merge with \$pretty_name" |
101 | 103 | git read-tree -u -m --aggressive $common $MRT $SHA1 || exit 2
|
102 | 104 | next=$(git write-tree 2>/dev/null)
|
103 | 105 | if test $? -ne 0
|
104 | 106 | then
|
105 |
| - echo "Simple merge did not work, trying automatic merge." |
| 107 | + gettextln "Simple merge did not work, trying automatic merge." |
106 | 108 | git-merge-index -o git-merge-one-file -a ||
|
107 | 109 | OCTOPUS_FAILURE=1
|
108 | 110 | next=$(git write-tree 2>/dev/null)
|
|
0 commit comments