From: Junio C Hamano <gitster@pobox.com>
To: Jakub Narebski <jnareb@gmail.com>
Cc: Catalin Marinas <catalin.marinas@gmail.com>, git@vger.kernel.org
Subject: Re: StGIT 0.13 recognizes but not list packed StGIT controlled branches
Date: Sun, 18 Nov 2007 16:00:15 -0800 [thread overview]
Message-ID: <7vpry7t88g.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <200711190005.49990.jnareb@gmail.com> (Jakub Narebski's message of "Mon, 19 Nov 2007 00:05:49 +0100")
Jakub Narebski <jnareb@gmail.com> writes:
> So the question is: how to unpack branches, and how to prevent
> branches from being packed by "git-gc"?
I am afraid that is a wrong question. How long have we had the
packed-refs anyway?
The question is "How to get the list of refs from a Porcelain if
it wants to be compatible with GIT v1.4.4-rc1 (Nov 7, 2006) and
later?", and the answer is for-each-ref.
Having said that, you could explode it by hand like this:
git for-each-ref --format='%(objectname) %(refname)' refs/heads |
while read sha1 refname
do
test -f "$GIT_DIR/$refname" ||
git update-ref "$refname" "$sha1"
done
next prev parent reply other threads:[~2007-11-19 0:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-18 23:05 StGIT 0.13 recognizes but not list packed StGIT controlled branches Jakub Narebski
2007-11-19 0:00 ` Junio C Hamano [this message]
2007-11-19 11:20 ` Catalin Marinas
2007-11-19 11:57 ` Jakub Narebski
2007-11-19 13:15 ` Catalin Marinas
2007-11-19 17:43 ` Jakub Narebski
2007-11-19 17:51 ` Catalin Marinas
2007-11-19 18:26 ` Jakub Narebski
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=7vpry7t88g.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=catalin.marinas@gmail.com \
--cc=git@vger.kernel.org \
--cc=jnareb@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 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).