summaryrefslogtreecommitdiff
path: root/t/t0016-oidmap.sh
diff options
context:
space:
mode:
authorLibravatar Eric Sunshine <sunshine@sunshineco.com>2020-06-08 02:23:49 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-06-08 13:31:27 -0700
commitc9b77f2cea2f0b4ee34d1d7a25cd1ebed767caf4 (patch)
treee98a6d1be1cee5ce86270ae5117f11d10dd2bf5d /t/t0016-oidmap.sh
parentGit 2.26.2 (diff)
downloadtgif-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