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

Re: [PATCH] git status: fix grammar when in detached head

From
Jeff King <peff@peff.net>
Date
Mar 19, 2011, 22:16 UTC
Message-ID
<20110319221610.GA7116@sigill.intra.peff.net>
In-Reply-To
<4D852129.7050205@gmail.com>
On Sat, Mar 19, 2011 at 10:33:29PM +0100, Piotr Krukowiecki wrote:
> Not a native English speaker, but IMO the previous version isn't 
> correct.

The previous version is fine (well, it's not actually a complete sentence because it doesn't contain a verb, but that seems not to be the issue).

Breaking it down with the implied beginning, it is:
  [You are] not currently on any branch.
    |   |    |      |     \------------/
    1   2    3      4           5

1 = subject 2 = verb 3 = adverb (modifying "are") 4 = adverb (modifying "are") 5 = prepositional phrase functioning as predicate nominative

You can put an adverb before or after the verb it modifies. For clarity, it's usually a good idea to keep the adverb close to its verb, though in simple sentences it's not necessary, and putting the adverb at the beginning or end of the sentence can emphasize it.

So:
Show 10 quoted lines
> diff --git a/wt-status.c b/wt-status.c
> index 4daa8bb..3214f52 100644
> --- a/wt-status.c
> +++ b/wt-status.c
> @@ -643,7 +643,7 @@ void wt_status_print(struct wt_status *s)
>  		else if (!strcmp(branch_name, "HEAD")) {
>  			branch_name = "";
>  			branch_status_color = color(WT_STATUS_NOBRANCH, s);
> -			on_what = "Not currently on any branch.";
> +			on_what = "Not on any branch currently.";

Both are correct, as is "Currently not on any branch." As would be "You currently are not on any branch" if we were including the implied subject and verb.

I think the current version is my favorite, as it gives the most emphasis to "not" and "branch", but that is just personal taste. At any rate, I'd rather not change it lightly as things like editor syntax highlighters recognize the current phrase (though I suppose they may soon have to deal with i18n issues anyway).

-Peff
Previous: Piotr Krukowiecki
Message 2 of 2 in “git status: fix grammar when in detached head”
  1. git status: fix grammar when in detached headPiotr Krukowiecki, Mar 19, 2011
  2. Jeff KingMar 19, 2011

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.