From: Junio C Hamano <gitster@pobox.com>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: Sebastian Pipping <webmaster@hartwork.org>, git@vger.kernel.org
Subject: Re: "git clone --depth <depth>" producing history with <depth + 1> commits?
Date: Wed, 01 Apr 2009 19:33:08 -0700 [thread overview]
Message-ID: <7veiwbokd7.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <alpine.DEB.1.00.0904020303320.10279@pacific.mpi-cbg.de> (Johannes Schindelin's message of "Thu, 2 Apr 2009 03:04:58 +0200 (CEST)")
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> On Wed, 1 Apr 2009, Sebastian Pipping wrote:
>
>> Sebastian Pipping wrote:
>> > Is "git clone --depth 1 <ropository>" expected to give a history
>> > with 2 commits? "--depth 2" gives 3 commits, "--depth 0" all.
>> >
>> > Is that by design or a bug?
>>
>> Anyone? Is "git clone --depth 1 <ropository>" really supposed to
>> produce a history holding _two_ commits? Why so?
>
> Because storing _no_ commit (according to you, that should happen with
> --depth=0) would make no sense?
But then you can error out upon such a request.
> After all, if you want to clone, you want to clone at least _something_.
I am a bit puzzled by your logic. If one is requested, shouldn't you give
only one and not two?
next prev parent reply other threads:[~2009-04-02 2:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-26 17:00 "git clone --depth <depth>" producing history with <depth + 1> commits? Sebastian Pipping
2009-04-01 19:39 ` Sebastian Pipping
2009-04-02 1:04 ` Johannes Schindelin
2009-04-02 1:19 ` Sebastian Pipping
2009-04-02 2:33 ` Junio C Hamano [this message]
2009-04-02 11:00 ` Johannes Schindelin
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=7veiwbokd7.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=webmaster@hartwork.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).