From: Peter Baumann <waste.manager@gmx.de>
To: Bernd Lommerzheim <bernd@lommerzheim.com>
Cc: git@vger.kernel.org
Subject: Re: "git gc" removes ".git/refs/heads/master".
Date: Thu, 29 Jan 2009 20:55:26 +0100 [thread overview]
Message-ID: <20090129195526.GA15475@m62s10.vlinux.de> (raw)
In-Reply-To: <83c97f59a5a5e59f908f3fc125d26adb@lunox.net>
On Thu, Jan 29, 2009 at 08:31:17PM +0100, Bernd Lommerzheim wrote:
> Hi,
>
> maybe I found a bug in git. When I execute "git gc" in my local repository,
> git removes the file ".git/refs/heads/master". Is this an intended behavior
> (but why?) or is that a bug?
>
This is intential, as git gc creates .git/packed-refs in which the
contents of your master branch are stored. The packed-refs help speeding
up the listing of your branches if you have many of them (e.g. many old
historical ones).
Regards,
Peter Baumann
next prev parent reply other threads:[~2009-01-29 19:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-29 19:31 "git gc" removes ".git/refs/heads/master" Bernd Lommerzheim
2009-01-29 19:50 ` Johannes Schindelin
2009-01-29 19:51 ` Johannes Gilger
2009-01-29 19:55 ` Peter Baumann [this message]
2009-01-29 20:07 ` Junio C Hamano
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=20090129195526.GA15475@m62s10.vlinux.de \
--to=waste.manager@gmx.de \
--cc=bernd@lommerzheim.com \
--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).