From: Jeff King <peff@peff.net>
To: Piotr Krukowiecki <piotr.krukowiecki@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>,
Junio C Hamano <gitster@pobox.com>
Subject: Re: [PATCH] git status: fix grammar when in detached head
Date: Sat, 19 Mar 2011 18:16:10 -0400 [thread overview]
Message-ID: <20110319221610.GA7116@sigill.intra.peff.net> (raw)
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:
> 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
prev parent reply other threads:[~2011-03-19 22:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-19 21:33 [PATCH] git status: fix grammar when in detached head Piotr Krukowiecki
2011-03-19 22:16 ` Jeff King [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110319221610.GA7116@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=piotr.krukowiecki@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).