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

Re: RFH: unexpected reflog behavior with --since=

From
Miles Bader <miles@gnu.org>
Date
Nov 10, 2011, 11:06 UTC
Message-ID
<buok4785j8v.fsf@dhlpc061.dev.necel.com>
In-Reply-To
<20111110080851.GA28342@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 6 quoted lines
> The only point would be to leave "--since" to act on the commit
> timestamps, so that you don't have to resort to the external grepping I
> mentioned above. However, I'm not convinced anybody even cares about
> that use case.
>
> I think the behavior you want is much more sensible.

I think there's already confusion in this area, e.g., with @{...} using reflog dates, but "git log --since" using commit dates. This can be an easy trap to fall into because _often_ the two have similar granularity (when you're mostly pushing changes), but not _always_ (when you pull a big batch of changes).

Soooo, being really really explicit about using reflog dates vs. commit dates -- and e.g., having option names like "--since" _always_ refer to commit dates -- would be a good thing, I think...

-Miles
-- 
Future, n. That period of time in which our affairs prosper, our friends
are true and our happiness is assured.
Previous: Jay SoffianNext: Eric Raible
Message 9 of 13 in “RFH: unexpected reflog behavior with --since=”
  1. Eric RaibleNov 9, 2011
  2. Jeff KingNov 9, 2011
  3. Jeff KingNov 9, 2011
  4. Jeff KingNov 9, 2011
  5. Eric RaibleNov 10, 2011
  6. Jeff KingNov 10, 2011
  7. Eric RaibleNov 10, 2011
  8. Jay SoffianNov 10, 2011
  9. Miles BaderNov 10, 2011
  10. Eric RaibleNov 10, 2011
  11. Junio C HamanoNov 12, 2011
  12. Eric RaibleNov 10, 2011
  13. Jeff KingNov 10, 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.