diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-06-17 10:44:40 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-06-17 10:44:40 -0700 |
| commit | 1f622bb0abf08c31a94858955a1350a65bd410de (patch) | |
| tree | 43701f1dac1c8d753711a47bef411bd28aa270eb /builtin | |
| parent | Merge branch 'ly/sequencer-update-squash-is-fixup-only' (diff) | |
| parent | BUG(): remove leading underscore of the format string (diff) | |
| download | git-1f622bb0abf08c31a94858955a1350a65bd410de.tar.gz git-1f622bb0abf08c31a94858955a1350a65bd410de.zip | |
Merge branch 'ly/do-not-localize-bug-messages'
Code clean-up.
* ly/do-not-localize-bug-messages:
BUG(): remove leading underscore of the format string
Diffstat (limited to 'builtin')
| -rw-r--r-- | builtin/mktag.c | 2 | ||||
| -rw-r--r-- | builtin/worktree.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/builtin/mktag.c b/builtin/mktag.c index 7ac11c46d5..1b1dc0263e 100644 --- a/builtin/mktag.c +++ b/builtin/mktag.c @@ -41,7 +41,7 @@ static int mktag_fsck_error_func(struct fsck_options *o UNUSED, fprintf_ln(stderr, _("error: tag input does not pass fsck: %s"), message); return 1; default: - BUG(_("%d (FSCK_IGNORE?) should never trigger this callback"), + BUG("%d (FSCK_IGNORE?) should never trigger this callback", msg_type); } } diff --git a/builtin/worktree.c b/builtin/worktree.c index 88a36ea9f8..2dceeeed8b 100644 --- a/builtin/worktree.c +++ b/builtin/worktree.c @@ -621,7 +621,7 @@ static void print_preparing_worktree_line(int detach, else { struct commit *commit = lookup_commit_reference_by_name(branch); if (!commit) - BUG(_("unreachable: invalid reference: %s"), branch); + BUG("unreachable: invalid reference: %s", branch); fprintf_ln(stderr, _("Preparing worktree (detached HEAD %s)"), repo_find_unique_abbrev(the_repository, &commit->object.oid, DEFAULT_ABBREV)); } |
