From: Mark Levedahl <mlevedahl@gmail.com>
To: Adam Brewster <adambrewster@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>,
git@vger.kernel.org, Jakub Narebski <jnareb@gmail.com>
Subject: Re: [PATCH/v2] git-basis, a script to manage bases for git-bundle
Date: Fri, 04 Jul 2008 09:14:45 -0400 [thread overview]
Message-ID: <486E2245.6040404@gmail.com> (raw)
In-Reply-To: <c376da900807031613pc63639du356946f8daeabb29@mail.gmail.com>
Adam Brewster wrote:
> Hi Mark,
>
> Thank you for your help, and I'm sorry I didn't get back to you sooner.
>
> That's a good way to do things. I tend to like my system better
> because it's a little more flexible and it doesn't pollute git-branch
> -a and gitk --all, also as I said before I like the bundle creation
> and the basis update to be separated.
>
> How do you deal with the case where you want to include remote refs in
> the bundle? Don't they get saved as
> refs/remotes/remote/remotes/somewhere-else/master?
>
> Adam
>
>
My script is based upon experience with breakage from keeping the basis
separate: absent keeping the refs in the git repo, there is nothing to
guarantee that the referenced commits continue to exist. We make
extensive use of short lived topic branches that are often rebased
multiple times before being incorporated into a stable branch, so an
externally stored basis would frequently have invalid commits. The
solutions to this are to 1) filter them out, one by one, with a "git
rev-parse $commit" or some such, or 2) keep the refs in tree so git will
not remove the objects.
I'm using this for sneaker-netting, so I know the bundles are being
applied - clearly the create bundle and update in-tree basis steps could
be separated, but I don't use this for cases where I'm not sure the
bundle will be applied. In the latter case, I just use a basis
containing only previous stable branches.
You are correct in the name for a remote in the pushed bundle, the names
do get convoluted, but then I'm not sure what the "correct" syntax would
be to refer to a remote repo's idea of a remote branch.
Mark
next prev parent reply other threads:[~2008-07-04 13:15 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1214272713-7808-1-git-send-email-adambrewster@gmail.com>
2008-06-30 22:49 ` [PATCH/v2] git-basis, a script to manage bases for git-bundle Adam Brewster
2008-07-01 9:51 ` Jeff King
2008-07-02 1:36 ` Adam Brewster
2008-07-02 2:10 ` Jay Soffian
2008-07-02 2:16 ` Adam Brewster
2008-07-02 2:21 ` Jay Soffian
2008-07-02 3:21 ` Jeff King
2008-07-02 9:44 ` Jakub Narebski
2008-07-03 19:59 ` Jeff King
2008-07-03 23:38 ` Adam Brewster
2008-07-04 0:44 ` Johannes Schindelin
2008-07-04 2:04 ` Adam Brewster
2008-07-04 16:47 ` Mark Levedahl
2008-07-04 20:55 ` Jakub Narebski
2008-07-04 19:51 ` Jeff King
2008-07-01 23:55 ` Junio C Hamano
2008-07-02 0:16 ` Mark Levedahl
2008-07-03 23:13 ` Adam Brewster
2008-07-04 13:14 ` Mark Levedahl [this message]
2008-07-04 13:22 ` Johannes Schindelin
2008-07-04 13:49 ` Mark Levedahl
2008-07-02 2:12 ` Adam Brewster
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=486E2245.6040404@gmail.com \
--to=mlevedahl@gmail.com \
--cc=adambrewster@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--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).