Skip to content

Commit 5dceb8b

Browse files
brandb97gitster
authored andcommitted
BUG(): remove leading underscore of the format string
BUG() is not end-user facing but programmer facing, and we do not use _("...") in them. Replace all `BUG(_("..."))` with `BUG("...")` Signed-off-by: Lidong Yan <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d50a5e8 commit 5dceb8b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

builtin/mktag.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static int mktag_fsck_error_func(struct fsck_options *o UNUSED,
4141
fprintf_ln(stderr, _("error: tag input does not pass fsck: %s"), message);
4242
return 1;
4343
default:
44-
BUG(_("%d (FSCK_IGNORE?) should never trigger this callback"),
44+
BUG("%d (FSCK_IGNORE?) should never trigger this callback",
4545
msg_type);
4646
}
4747
}

builtin/worktree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ static void print_preparing_worktree_line(int detach,
621621
else {
622622
struct commit *commit = lookup_commit_reference_by_name(branch);
623623
if (!commit)
624-
BUG(_("unreachable: invalid reference: %s"), branch);
624+
BUG("unreachable: invalid reference: %s", branch);
625625
fprintf_ln(stderr, _("Preparing worktree (detached HEAD %s)"),
626626
repo_find_unique_abbrev(the_repository, &commit->object.oid, DEFAULT_ABBREV));
627627
}

pack-bitmap-write.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ void bitmap_writer_finish(struct bitmap_writer *writer,
10541054
oid_access);
10551055

10561056
if (commit_pos < 0)
1057-
BUG(_("trying to write commit not in index"));
1057+
BUG("trying to write commit not in index");
10581058
stored->commit_pos = commit_pos;
10591059
}
10601060

0 commit comments

Comments
 (0)