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

Re: [PATCH] Fix grammar in git push man page

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 10, 2023, 01:13 UTC
Message-ID
<xmqqcyzvk8cn.fsf@gitster.g>
In-Reply-To
<20230810004044.1420385-1-wesleys@opperschaap.net>
Wesley Schwengle <wesleys@opperschaap.net> writes:
> Subject: Re: [PATCH] Fix grammar in git push man page
We would probably phrase it more like
	Subject: git-push.txt: fix grammar
Show 18 quoted lines
> While working on a blog post and using grammarly it suggested these two
> changes.
>
> Signed-off-by: Wesley Schwengle <wesleys@opperschaap.net>
> ---
>  Documentation/git-push.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/git-push.txt b/Documentation/git-push.txt
> index 297927d866..6926e79719 100644
> --- a/Documentation/git-push.txt
> +++ b/Documentation/git-push.txt
> @@ -37,7 +37,7 @@ the default `<refspec>` by consulting `remote.*.push` configuration,
>  and if it is not found, honors `push.default` configuration to decide
>  what to push (See linkgit:git-config[1] for the meaning of `push.default`).
>  
> -When neither the command-line nor the configuration specify what to
> +When neither the command line nor the configuration specifies what to
The fix for the verb is very much correct and appreciated.
The first part is debatable for two reasons.

Locally, what is "fixed" is only one of the two instances of "command-line" in this file. If we were to clean it up, you would at least want to do the other one for consistency.

Globally, git grep -i "command.line" in Documentation (excluding Documentation/RelNotes, as that part is almost exclusively written by me and shows my bias) gives ~200 hits for "command line" and ~100 hits for "command-line". We pretty much use them inter-changeably, in other words.

But for the grammar fix, it probably makes sense to just fix the verb without touching "command-line"; you have ~100 other instances that want to be touched for consistency, and they shouldn't take the verb fix hostage.

Thanks.
>  push, the default behavior is used, which corresponds to the `simple`
>  value for `push.default`: the current branch is pushed to the
>  corresponding upstream branch, but as a safety measure, the push is
Previous: Wesley SchwengleNext: Wesley Schwengle
Message 2 of 5 in “Fix grammar in git push man page”
  1. Fix grammar in git push man pageWesley Schwengle, Aug 10, 2023
  2. Junio C HamanoAug 10, 2023
  3. ] git-push.txt: fix grammarWesley Schwengle, Aug 10, 2023
  4. Bagas SanjayaAug 10, 2023
  5. Bagas SanjayaAug 10, 2023

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.