From: Junio C Hamano <gitster@pobox.com>
To: Dennis Kaarsemaker <dennis@kaarsemaker.net>
Cc: git@vger.kernel.org
Subject: Re: Reading remote reflogs
Date: Fri, 29 Mar 2013 15:45:42 -0700 [thread overview]
Message-ID: <7vd2uhn7u1.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <1364595928.30202.4.camel@localhost> (Dennis Kaarsemaker's message of "Fri, 29 Mar 2013 23:25:28 +0100")
Dennis Kaarsemaker <dennis@kaarsemaker.net> writes:
> ... Mirrored repositories don't
> maintain a reflog, even with core.logAllRefUpdates = true,...
Are you sure about this? When log_all_ref_updates is not set, by
default we do not log for bare repositories, but other than that, we
do not do anything special with respect to reflogs.
$ (cd .. && git clone --no-local --mirror git.git victim)
$ git checkout next
$ EDITOR=: git commit --amend
$ cd ../victim
$ git config core.logallrefupdates true
$ git fetch
$ find logs
logs
logs/HEAD
logs/refs
logs/refs/heads
logs/refs/heads/next
It seems to record how a branch at its origin was updated just fine,
at least to me.
next prev parent reply other threads:[~2013-03-29 22:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-29 22:25 Reading remote reflogs Dennis Kaarsemaker
2013-03-29 22:45 ` Junio C Hamano [this message]
2013-03-29 22:56 ` Dennis Kaarsemaker
2013-03-29 22:58 ` Junio C Hamano
2013-03-30 0:02 ` Dennis Kaarsemaker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vd2uhn7u1.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=dennis@kaarsemaker.net \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).