@@ -10,7 +10,7 @@ git am [options] (--resolved | --skip | --abort)
10
10
--
11
11
d,dotest= (removed -- do not use)
12
12
i,interactive run interactively
13
- b,binary pass --allow-binary-replacement to git-apply
13
+ b,binary (historical option -- no-op)
14
14
3,3way allow fall back on 3way merging if needed
15
15
s,signoff add a Signed-off-by line to the commit message
16
16
u,utf8 recode into utf8 (default)
@@ -87,7 +87,7 @@ fall_back_3way () {
87
87
88
88
echo Using index info to reconstruct a base tree...
89
89
if GIT_INDEX_FILE=" $dotest /patch-merge-tmp-index" \
90
- git apply $binary --cached < " $dotest /patch"
90
+ git apply --cached < " $dotest /patch"
91
91
then
92
92
mv " $dotest /patch-merge-base+" " $dotest /patch-merge-base"
93
93
mv " $dotest /patch-merge-tmp-index" " $dotest /patch-merge-index"
@@ -121,7 +121,7 @@ It does not apply to blobs recorded in its index."
121
121
122
122
prec=4
123
123
dotest=" $GIT_DIR /rebase-apply"
124
- sign= utf8=t keep= skip= interactive= resolved= binary= rebasing= abort=
124
+ sign= utf8=t keep= skip= interactive= resolved= rebasing= abort=
125
125
resolvemsg= resume=
126
126
git_apply_opt=
127
127
131
131
-i|--interactive)
132
132
interactive=t ;;
133
133
-b|--binary)
134
- binary=t ;;
134
+ : ;;
135
135
-3|--3way)
136
136
threeway=t ;;
137
137
-s|--signoff)
149
149
--abort)
150
150
abort=t ;;
151
151
--rebasing)
152
- rebasing=t threeway=t keep=t binary=t ;;
152
+ rebasing=t threeway=t keep=t ;;
153
153
-d|--dotest)
154
154
die " -d option is no longer supported. Do not use."
155
155
;;
@@ -247,10 +247,9 @@ else
247
247
exit 1
248
248
}
249
249
250
- # -b, - s, -u, -k and --whitespace flags are kept for the
250
+ # -s, -u, -k and --whitespace flags are kept for the
251
251
# resuming session after a patch failure.
252
252
# -3 and -i can and must be given when resuming.
253
- echo " $binary " > " $dotest /binary"
254
253
echo " $ws " > " $dotest /whitespace"
255
254
echo " $sign " > " $dotest /sign"
256
255
echo " $utf8 " > " $dotest /utf8"
@@ -274,10 +273,6 @@ case "$resolved" in
274
273
fi
275
274
esac
276
275
277
- if test " $( cat " $dotest /binary" ) " = t
278
- then
279
- binary=--allow-binary-replacement
280
- fi
281
276
if test " $( cat " $dotest /utf8" ) " = t
282
277
then
283
278
utf8=-u
459
454
460
455
case " $resolved " in
461
456
' ' )
462
- git apply $git_apply_opt $binary --index " $dotest /patch"
457
+ git apply $git_apply_opt --index " $dotest /patch"
463
458
apply_status=$?
464
459
;;
465
460
t)
0 commit comments