Skip to content

Commit 382d55a

Browse files
committed
Merge branch 'ni/die-message-fix-for-git-add' into maint-2.42
Message updates. * ni/die-message-fix-for-git-add: builtin/add.c: clean up die() messages
2 parents f868596 + 48399e9 commit 382d55a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

builtin/add.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ static int edit_patch(int argc, const char **argv, const char *prefix)
182182
git_config(git_diff_basic_config, NULL); /* no "diff" UI options */
183183

184184
if (repo_read_index(the_repository) < 0)
185-
die(_("Could not read the index"));
185+
die(_("could not read the index"));
186186

187187
repo_init_revisions(the_repository, &rev, prefix);
188188
rev.diffopt.context = 7;
@@ -200,15 +200,15 @@ static int edit_patch(int argc, const char **argv, const char *prefix)
200200
die(_("editing patch failed"));
201201

202202
if (stat(file, &st))
203-
die_errno(_("Could not stat '%s'"), file);
203+
die_errno(_("could not stat '%s'"), file);
204204
if (!st.st_size)
205-
die(_("Empty patch. Aborted."));
205+
die(_("empty patch. aborted"));
206206

207207
child.git_cmd = 1;
208208
strvec_pushl(&child.args, "apply", "--recount", "--cached", file,
209209
NULL);
210210
if (run_command(&child))
211-
die(_("Could not apply '%s'"), file);
211+
die(_("could not apply '%s'"), file);
212212

213213
unlink(file);
214214
free(file);
@@ -566,7 +566,7 @@ int cmd_add(int argc, const char **argv, const char *prefix)
566566
finish:
567567
if (write_locked_index(&the_index, &lock_file,
568568
COMMIT_LOCK | SKIP_IF_UNCHANGED))
569-
die(_("Unable to write new index file"));
569+
die(_("unable to write new index file"));
570570

571571
dir_clear(&dir);
572572
clear_pathspec(&pathspec);

0 commit comments

Comments
 (0)