diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-11-02 10:53:27 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-11-02 10:53:27 +0300 |
commit | 382d55a9d3b7d459b14c3c085fc5f1c228190493 (patch) | |
tree | a611b213735007d63ea6fd6ef6d3fc3adce2cbc7 | |
parent | f8685969f565dbc2f96f6c2b3aad84c631fe3a21 (diff) | |
parent | 48399e9cf0348060fc03df794dab587eaf14cc6e (diff) |
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
-rw-r--r-- | builtin/add.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/builtin/add.c b/builtin/add.c index 12c5aa6d1f..0057392f98 100644 --- a/builtin/add.c +++ b/builtin/add.c @@ -182,7 +182,7 @@ static int edit_patch(int argc, const char **argv, const char *prefix) git_config(git_diff_basic_config, NULL); /* no "diff" UI options */ if (repo_read_index(the_repository) < 0) - die(_("Could not read the index")); + die(_("could not read the index")); repo_init_revisions(the_repository, &rev, prefix); rev.diffopt.context = 7; @@ -200,15 +200,15 @@ static int edit_patch(int argc, const char **argv, const char *prefix) die(_("editing patch failed")); if (stat(file, &st)) - die_errno(_("Could not stat '%s'"), file); + die_errno(_("could not stat '%s'"), file); if (!st.st_size) - die(_("Empty patch. Aborted.")); + die(_("empty patch. aborted")); child.git_cmd = 1; strvec_pushl(&child.args, "apply", "--recount", "--cached", file, NULL); if (run_command(&child)) - die(_("Could not apply '%s'"), file); + die(_("could not apply '%s'"), file); unlink(file); free(file); @@ -566,7 +566,7 @@ int cmd_add(int argc, const char **argv, const char *prefix) finish: if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK | SKIP_IF_UNCHANGED)) - die(_("Unable to write new index file")); + die(_("unable to write new index file")); dir_clear(&dir); clear_pathspec(&pathspec); |