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

RFH: unexpected reflog behavior with --since=

From
EREric Raible <raible@nextest.com>
Date
Nov 9, 2011, 00:22 UTC
Message-ID
<4EB9C7D1.30201@nextest.com>

I'm trying to leverage the reflog to speed up our $dayjob build procedure (it's complicated), and found unexpected behavior when limiting reflog output with --since.

    git init reflog-test
    cd reflog-test
    touch a && git add a && git commit -m'add a'
    sleep 1
    touch b && git add b && git commit -m'add b'
    # add_b will be the time that b was added (email ends with '>')
    add_b=$(tail -1 .git/logs/HEAD | perl -e "print( <> =~ m/> (\S+)/ )")
    # It's reported correctly here:
    git log -g --oneline --since=$add_b
    # But after a reset no history isn't shown.
    git reset --hard HEAD^
    git log -g --oneline --since=$add_b

Is this a bug? Of course everything is reported when --since isn't used, but not so when limited with --since.

1.7.7.1.msysgit.0
Thanks - Eric
Next: Jeff King
Message 1 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.