Thread (121 messages) flat view 121 messages, 8 authors, 2022-02-16

Re: [PATCH v5 5/5] worktree: copy sparse-checkout patterns and config on add

From: Derrick Stolee <hidden>
Date: 2022-02-07 14:29:58

On 2/6/2022 5:36 AM, Jean-Noël AVILA wrote:
On Monday, 31 January 2022 16:00:59 CET Derrick Stolee via GitGitGadget wrote:
Hi Jean-Noël. Thanks for your attention to the translatable messages
here:
quoted
error(_("failed to copy '%s' to '%s'; sparse-checkout may not work correctly"),
      from_file, to_file);
quoted
die(_("failed to copy worktree config from '%s' to '%s'"),
    from_file, to_file);
quoted
error(_("failed to unset 'core.bare' in '%s'"), to_file);
quoted
error(_("failed to unset 'core.worktree' in '%s'"), to_file);
In the first patch of this series, you use _("unable to set '%s' in'%s'). Does it make sense to reuse this string here?
I would argue that "unable to set" is not appropriate for any of these
messages. Perhaps the "failed to copy" messages might be able to use
"unable to set", but the information that the config setting is coming
from settings the user controlled is valuable.

The "failed to unset" means "we are trying to _remove_ this setting
from the config file", so "unable to set" does not seem to work here.

I'm open to revisiting this if you disagree.

Thanks,
-Stolee
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help