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

[Bug] worktree prune --expires

From
Randall S. Becker <rsbecker@nexbridge.com>
Date
Mar 30, 2021, 19:00 UTC
Message-ID
<011901d72596$e5ed8670$b1c89350$@nexbridge.com>
Hi Team,

This is pretty much just a quibble, but the command parser for worktree prune --expires should really report when a timestamp is invalid. For example:

worktree prune --expires A:30 actually

actually appears to process the prune going back a very long time instead of reporting that A:30 isn't a good timestamp.

Experienced using git 2.29.2 in Cygwin - not my usual space and git 2.31.0 on NonStop.

I suspect that this should use the same timestamp parse as for other commands, although I also noticed that git log --since accepts the same syntactically awkward time. Am I missing something?

Thanks, Randall

-- Brief whoami:
 NonStop developer since approximately 211288444200000000
 UNIX developer since approximately 421664400
-- In my real life, I talk too much.
Next: Junio C Hamano
Message 1 of 3 in “[Bug] worktree prune --expires”
  1. Randall S. BeckerMar 30, 2021
  2. Junio C HamanoMar 30, 2021
  3. Randall S. BeckerMar 30, 2021

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.