From: Mark Levedahl <mlevedahl@gmail.com>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: Junio C Hamano <junkio@cox.net>, git@vger.kernel.org
Subject: Re: [PATCH 2/3] git-bundle: die if a given ref is not included in bundle
Date: Sat, 10 Mar 2007 11:14:13 -0500 [thread overview]
Message-ID: <45F2D955.8050800@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.63.0703101637300.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin wrote:
> Hi,
>
> IMHO saying "master ^master" should blow into the user's face. If she says
> "I want it" _and_ "I don't want it", she should sorta expect it not to
> work.
>
> Ciao,
> Dscho
>
>
The command
git-bundle create foo next ^master
is legitimate, even if next points to the same commit as master. The
current logic would reject this, and should not as we might want to push
out the base of a new development branch in this manner. Consider that
git-fetch <url> would happily update next in this case, git bundle /
git-fetch should as well.
I think we should think of the git-bundle command as accepting two lists
of rev-args
1 - the list of heads to define in the bundle (possibly --all, should
also accept refs/heads/*)
2 - the list of commits to require as prerequisites for applying the
bundle (possibly defined as --since=, possibly defined as a list of
commits, etc).
As long as the lists are syntactically acceptable (all exist), we should
just create the bundle with the given refs and prerequisites. The
resulting bundle will apply cleanly and conforms to general git
semantics. So, I think git-bundle should error out only if a ref does
not exist or if no refs are defined. An empty pack file is legitimate.
Mark
next prev parent reply other threads:[~2007-03-10 16:14 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-09 2:48 [PATCH 2/3] git-bundle: die if a given ref is not included in bundle Johannes Schindelin
2007-03-09 3:17 ` Mark Levedahl
2007-03-09 7:17 ` Junio C Hamano
2007-03-09 13:40 ` Mark Levedahl
2007-03-09 15:36 ` Mark Levedahl
2007-03-09 16:30 ` [PATCH] git-bundle: only die if pack would be empty, warn if ref is skipped Johannes Schindelin
2007-03-10 5:44 ` Mark Levedahl
2007-03-09 23:37 ` [PATCH 2/3] git-bundle: die if a given ref is not included in bundle Junio C Hamano
2007-03-10 5:48 ` Mark Levedahl
2007-03-10 15:39 ` Johannes Schindelin
2007-03-10 16:14 ` Mark Levedahl [this message]
2007-03-10 16:53 ` Johannes Schindelin
2007-03-10 18:30 ` Mark Levedahl
2007-03-11 1:08 ` Johannes Schindelin
2007-03-11 1:29 ` Junio C Hamano
2007-03-11 1:54 ` Johannes Schindelin
2007-03-11 14:51 ` Mark Levedahl
2007-03-11 19:58 ` Junio C Hamano
2007-03-11 22:28 ` Johannes Schindelin
2007-03-13 3:16 ` Mark Levedahl
2007-03-09 3:51 ` [PATCH] git-bundle: die if the bundle is empty Mark Levedahl
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=45F2D955.8050800@gmail.com \
--to=mlevedahl@gmail.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/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).