144
}
145
146
append_todo_help () {
147
- git stripspace --comment-lines >>"$todo" <<\EOF
148
-
147
+ gettext "
148
Commands:
149
p, pick = use commit
150
r, reword = use commit, but edit the commit message
151
e, edit = use commit, but stop for amending
152
s, squash = use commit, but meld into previous commit
154
- f, fixup = like "squash", but discard this commit's log message
153
+ f, fixup = like \"squash\", but discard this commit's log message
154
x, exec = run command (the rest of the line) using shell
155
d, drop = remove commit
156
157
These lines can be re-ordered; they are executed from top to bottom.
158
+" | git stripspace --comment-lines >>"$todo"
159
160
-EOF
160
if test $(get_missing_commit_check_level) = error
161
then
163
- git stripspace --comment-lines >>"$todo" <<\EOF
162
+ gettext "
163
Do not remove any line. Use 'drop' explicitly to remove a commit.
165
-EOF
164
+" | git stripspace --comment-lines >>"$todo"
165
else
167
- git stripspace --comment-lines >>"$todo" <<\EOF
166
+ gettext "
167
If you remove a line here THAT COMMIT WILL BE LOST.
169
-EOF
168
+" | git stripspace --comment-lines >>"$todo"
169
fi
170
}
171
1122
mv -f "$todo".new "$todo"
1123
collapse_todo_ids
1124
append_todo_help
1126
- git stripspace --comment-lines >>"$todo" <<\EOF
1127
-
1125
+ gettext "
1126
You are editing the todo file of an ongoing interactive rebase.
1127
To continue rebase after editing, run:
1128
git rebase --continue
1129
1132
-EOF
1130
+" | git stripspace --comment-lines >>"$todo"
1131
1132
git_sequence_editor "$todo" ||
1133
die "$(gettext "Could not execute editor")"
1268
1269
cat >>"$todo" <<EOF
1270
1273
-$comment_char Rebase $shortrevisions onto $shortonto ($todocount command(s))
1271
+$comment_char $(eval_ngettext \
1272
+ "Rebase \$shortrevisions onto \$shortonto (\$todocount command)" \
1273
+ "Rebase \$shortrevisions onto \$shortonto (\$todocount commands)" \
1274
+ "$todocount")
1275
EOF
1276
append_todo_help
1276
-git stripspace --comment-lines >>"$todo" <<\EOF
1277
-
1277
+gettext "
1278
However, if you remove everything, the rebase will be aborted.
1279
1280
-EOF
1280
+" | git stripspace --comment-lines >>"$todo"
1281
1282
if test -z "$keep_empty"
1283
then