From: Junio C Hamano <gitster@pobox.com>
To: "Li Frank" <Frank.Li@freescale.com>
Cc: <git@vger.kernel.org>
Subject: Re: Can Git push only first parent history commits?
Date: Sun, 07 Dec 2008 19:00:25 -0800 [thread overview]
Message-ID: <7v7i6bbcc6.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <402F4B33D9C9DE4083DB96B416549FAF9E12@zch01exm23.fsl.freescale.net> (Li Frank's message of "Mon, 8 Dec 2008 10:52:38 +0800")
Your drawing nor explanation unfortunately does not make much sense to me,
so I'll respond only to the subject.
Pushing only first parent history would mean that the commits you will be
transferring will still record their true parents, but you are not sending
any parents but the first ones. The repository that receives such a push
would not pass fsck, in other words, you are deliberately corrupting the
repository.
Naturally we won't support such an operation by default.
It is plausible that you can implement an option to do so, but it would
make it hard at the receiving end to tell between a true repository
corruption and a corruption you are deliberately introducing by such a
push, so it won't be useful unless accompanied by a corresponding option
to fsck to make it not complain when parent commits and associated objects
that are not necessary for first parent history.
next prev parent reply other threads:[~2008-12-08 3:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-08 2:52 Can Git push only first parent history commits? Li Frank
2008-12-08 3:00 ` Junio C Hamano [this message]
2008-12-08 3:11 ` Li Frank
2008-12-08 7:44 ` Matthieu Moy
2008-12-08 4:03 ` Boyd Stephen Smith Jr.
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=7v7i6bbcc6.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=Frank.Li@freescale.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).