diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2020-06-08 02:23:49 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-06-08 13:31:27 -0700 |
commit | c9b77f2cea2f0b4ee34d1d7a25cd1ebed767caf4 (patch) | |
tree | e98a6d1be1cee5ce86270ae5117f11d10dd2bf5d /t/t0016-oidmap.sh | |
parent | Git 2.26.2 (diff) | |
download | tgif-c9b77f2cea2f0b4ee34d1d7a25cd1ebed767caf4.tar.xz |
worktree: factor out repeated string literal
For each worktree removed by "git worktree prune", it reports the reason
for the removal. All reasons share the common prefix "Removing
worktrees/%s:". As new removal reasons are added, this prefix needs to
be duplicated, which is error-prone and potentially cumbersome.
Therefore, factor out the common prefix.
Although this change seems to increase the "sentence lego quotient", it
should be reasonably safe, as the reason for removal is a distinct
clause, not strictly related to the prefix. Moreover, the "worktrees" in
"Removing worktrees/%s:" is a path literal which ought not be localized,
so by factoring it out, we can more easily avoid exposing that path
fragment to translators.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0016-oidmap.sh')
0 files changed, 0 insertions, 0 deletions