git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC/PATCH] Replace filepattern with pathspec for consistency

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 12, 2013, 16:31 UTC
Message-ID
<7vliatijej.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1360661084-8678-1-git-send-email-Matthieu.Moy@imag.fr>
Matthieu Moy <Matthieu.Moy@imag.fr> writes:
Show 12 quoted lines
> pathspec is the most widely used term, and is the one defined in
> gitglossary.txt. <filepattern> was used only in the synopsys for git-add
> and git-commit, and in git-add.txt. Get rid of it.
>
> This patch is obtained with by running:
>
>   perl -pi -e 's/filepattern/pathspec/' `git grep -l filepattern`
>
> Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
> ---
> I'm a bit unsure about the changes to the .po files, but I guess doing
> the substitution there too does the right thing.

I am not sure if that is the right thing from the workflow point of view, though.

The strings that are fed to _() would be updated with your patch, but the replacement will stay to be "filepattern" translated to the target language. Translators have to actively hunt for the messages to update them. If you left the .po files untouched, they would notice when git.pot is updated the next time and that will ensure that the affected messages get translated, no?

Show 9 quoted lines
>  Documentation/git-add.txt | 12 ++++++------
>  builtin/add.c             |  2 +-
>  builtin/commit.c          |  4 ++--
>  po/de.po                  |  6 +++---
>  po/git.pot                |  6 +++---
>  po/sv.po                  |  6 +++---
>  po/vi.po                  |  6 +++---
>  po/zh_CN.po               |  6 +++---
>  8 files changed, 24 insertions(+), 24 deletions(-)

For the above reason, I am inclined to take the first three and drop the rest.

Thanks.
Previous: Matthieu MoyNext: Matthieu Moy
Message 2 of 4 in “Replace filepattern with pathspec for consistency”
  1. Replace filepattern with pathspec for consistencyMatthieu Moy, Feb 12, 2013
  2. Junio C HamanoFeb 12, 2013
  3. Matthieu MoyFeb 12, 2013
  4. Junio C HamanoFeb 12, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.