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

Re: Accessing the reflog remotely

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 4, 2009, 18:03 UTC
Message-ID
<7vbpjii2ur.fsf@alter.siamese.dyndns.org>
In-Reply-To
<vpqljimpr95.fsf@bauges.imag.fr>
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
Show 8 quoted lines
> I guess the answer is "no", but I'll still ask in case ...
>
> Is it possible to access the reflog of a remote repository other than
> logging into this repository?
>
> My use-case is the following: I want to checkout "the last revision
> pushed in master on ssh://host/repo/ on day D at midnight" (to fetch
> the project of my students ;-) ). If it were locally, I'd do

This won't solve your problem but I'll mention it anyway as it may be related.

A distribution point repository like this is often bare, and reflogs are not enabled in bare repositories (primarily due to my stupidity^Wbeing overly cautious---I was very skeptical about reflogs when we introduced it). It may make sense to enable reflogs everywhere by default in some major version bump.

Also a distribution point repository is often served by gitweb and it would be really nice if there were an option to allow its summary view to show commits annotated with reflog entries, e.g.

    ----------------------------------------------------------------
    2 days ago          JCH Merge branch 'maint'
    (pushed 6 hrs ago)
    ----------------------------------------------------------------
    2 days ago          DVL Makefile: add compat/bswap.h to LIB_H
    ----------------------------------------------------------------
    3 days ago          JCH Revert "Don't create the $GIT_DIR/branches directory on init"
    (pushed 60 hours ago)
    ----------------------------------------------------------------
    4 days ago          JCH fixup tr/stash-format merge
    ----------------------------------------------------------------
        ...
Previous: Sverre RabbelierNext: Matthieu Moy
Message 7 of 8 in “Accessing the reflog remotely”
  1. Matthieu MoyNov 4, 2009
  2. Emanuele AinaNov 4, 2009
  3. Tomas CarneckyNov 4, 2009
  4. Nicolas PitreNov 4, 2009
  5. Matthieu MoyNov 4, 2009
  6. Sverre RabbelierNov 4, 2009
  7. Junio C HamanoNov 4, 2009
  8. Matthieu MoyNov 4, 2009

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.