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

Re: [PATCH] log: diagnose empty HEAD more clearly

From
Jeff King <peff@peff.net>
Date
Jun 4, 2015, 08:45 UTC
Message-ID
<20150604084505.GC5771@peff.net>
In-Reply-To
<556FFEB8.4050407@atlas-elektronik.com>
On Thu, Jun 04, 2015 at 09:31:04AM +0200, Stefan Näwe wrote:
Show 6 quoted lines
> > +	if (!rev->pending.nr && !opt->def)
> > +		die("you do not have a commit yet on your branch");
> 
> I am not a native english speaker but shouldn't this be:
> 
>   "you do not have a commit on your branch yet"
Both are fine, as is:
  "you do not yet have a commit on your branch"
though I think yours is slightly more clear.

If you are wondering at the reason, "yet" is an adverb modifying "have". So it may come before or after the verb. If we substitute a simpler verb (that does not need a direct object "a commit") and drop the prepositional phrase ("on your branch"), we can do either:

  - you do not yet program
  - you do not program yet

If we add back in the prepositional phrase (which is really acting as an adverbial phrase, modifying the verb here), we can do it in either order:

  - you do not program yet in the office
  - you do not program in the office yet

But the latter makes it more clear that the "yet" applies to "in the office".

You can also add back in the object of the verb:
  - you do not yet program computers
but you would not want:
  - you do not program yet computers
because it splits the verb from its object.
</grammar rant>
-Peff
Previous: Stefan NäweNext: Jeff King
Message 7 of 11 in “Minor bug report”
  1. Tummala DhanviJun 3, 2015
  2. Jeff KingJun 3, 2015
  3. Junio C HamanoJun 3, 2015
  4. log: diagnose empty HEAD more clearlyJeff King, Jun 3, 2015
  5. Junio C HamanoJun 3, 2015
  6. Stefan NäweJun 4, 2015
  7. Jeff KingJun 4, 2015
  8. Jeff KingJun 4, 2015
  9. Junio C HamanoJun 5, 2015
  10. Dennis KaarsemakerJun 3, 2015
  11. Jeff KingJun 4, 2015

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.