File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -223,12 +223,9 @@ cmd_add()
223
223
224
224
if test -z " $force " && ! git add --dry-run --ignore-missing " $path " > /dev/null 2>&1
225
225
then
226
- (
227
- eval_gettext " The following path is ignored by one of your .gitignore files:
226
+ eval_gettextln " The following path is ignored by one of your .gitignore files:
228
227
\$ path
229
- Use -f if you really want to add it." &&
230
- echo
231
- ) >&2
228
+ Use -f if you really want to add it." >&2
232
229
exit 1
233
230
fi
234
231
@@ -237,7 +234,7 @@ Use -f if you really want to add it." &&
237
234
then
238
235
if test -d " $path " /.git -o -f " $path " /.git
239
236
then
240
- eval_gettext " Adding existing repo at '\$ path' to the index" ; echo
237
+ eval_gettextln " Adding existing repo at '\$ path' to the index"
241
238
else
242
239
die " $( eval_gettext " '\$ path' already exists and is not a valid git repo" ) "
243
240
fi
@@ -696,10 +693,7 @@ cmd_summary() {
696
693
;; # removed
697
694
* )
698
695
# unexpected type
699
- (
700
- eval_gettext " unexpected mode \$ mod_dst" &&
701
- echo
702
- ) >&2
696
+ eval_gettextln " unexpected mode \$ mod_dst" >&2
703
697
continue ;;
704
698
esac
705
699
fi
@@ -786,9 +780,9 @@ cmd_summary() {
786
780
done |
787
781
if test -n " $for_status " ; then
788
782
if [ -n " $files " ]; then
789
- gettext " # Submodules changed but not updated:" ; echo
783
+ gettextln " # Submodules changed but not updated:"
790
784
else
791
- gettext " # Submodule changes to be committed:" ; echo
785
+ gettextln " # Submodule changes to be committed:"
792
786
fi
793
787
echo " #"
794
788
sed -e ' s|^|# |' -e ' s|^# $|#|'
You can’t perform that action at this time.
0 commit comments