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

Re: Why do dates in refspecs require the reflog?

From
Jeff King <peff@peff.net>
Date
Dec 31, 2014, 01:26 UTC
Message-ID
<20141231012615.GA8852@peff.net>
In-Reply-To
<CAHd499Bt6_SOkj9Pp+GcLGnwDUR-pgr_YKt4yqZBAHjX+vkM8Q@mail.gmail.com>
On Tue, Dec 30, 2014 at 03:39:53PM -0600, Robert Dailey wrote:
> It also feels like there should be a
> shorthand for the `git log` usage in conjunction with `git show`... I
> could probably make an alias for it.

One thing I didn't see mentioned in this thread is that the question "show me the commit closest to time X" does not have a single answer. When there are branches, there may be many such answers, one for each line of simultaneous development.

So people tend not to ask that question[1], and therefore nobody bothered to make a convenient shorthand for it.

-Peff
[1] What do they ask instead? I find most of my older queries for
    commits are satisfied following parent links from well-known points.
    E.g., finding where topic X was merged, and then walking backwards
    using "^2" to see the tip of the original topic.
    If I am looking for information about a particular file about a year
    ago, I often turn to "-S" or git-blame (actually, "tig blame" in my
    case, which lets you walk backwards interactively).
    But of course the exact query will depend on just what it is you
    want to know. :)
Previous: Robert DaileyNext: Michael Haggerty
Message 8 of 9 in “Why do dates in refspecs require the reflog?”
  1. Robert DaileyDec 30, 2014
  2. Stefan BellerDec 30, 2014
  3. Junio C HamanoDec 30, 2014
  4. Junio C HamanoDec 30, 2014
  5. Michael HaggertyDec 30, 2014
  6. Junio C HamanoDec 30, 2014
  7. Robert DaileyDec 30, 2014
  8. Jeff KingDec 31, 2014
  9. Michael HaggertyDec 30, 2014

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.