From: Julius Plenz <plenz@cis.fu-berlin.de>
To: Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] clean cached refs when calling set_git_dir()
Date: Thu, 10 Mar 2011 17:09:48 +0100 [thread overview]
Message-ID: <20110310160948.GL15960@plenz.com> (raw)
In-Reply-To: <AANLkTik1HMQqKc98AF-6DTGJgrk8HOjZTimGnK-XBv-q@mail.gmail.com>
Hi!
* Nguyen Thai Ngoc Duy <pclouds@gmail.com> [2011-03-10 17:00]:
> On Thu, Mar 10, 2011 at 10:19 PM, Julius Plenz <plenz@cis.fu-berlin.de> wrote:
> > If you use libgit.a to perform reference resolutions on two or more
> > repositories that contain packed refs, cached_refs will store the packed
> > refs for the first repository to contain a packed-refs file only.
>
> If you use libgit.a to do anything on more than one repository, you
> get a lot more messed up that just that. Spawning a new process or
> accessing with libgit2 may be safer. Why do you want to do that in the
> first place?
I was working on the cgit repository browser, where you have to peek
into several repositories to create the overview page. Since cgit
links to libgit.a I fixed the bug there. Not sure if that's the proper
way to do it, though...
Julius
next prev parent reply other threads:[~2011-03-10 16:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-10 15:19 [PATCH] clean cached refs when calling set_git_dir() Julius Plenz
2011-03-10 15:59 ` Nguyen Thai Ngoc Duy
2011-03-10 16:09 ` Julius Plenz [this message]
2011-03-10 17:14 ` Lars Hjemli
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=20110310160948.GL15960@plenz.com \
--to=plenz@cis.fu-berlin.de \
--cc=git@vger.kernel.org \
--cc=pclouds@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.