From: Konstantin Khomoutov <flatworm@users.sourceforge.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: "Philip Oakley" <philipoakley@iee.org>,
"Konstantin Khomoutov" <kostix+git@007spb.ru>,
<git@vger.kernel.org>
Subject: Re: Pushing/fetching from/into a shallow-cloned repository
Date: Fri, 19 Apr 2013 20:02:34 +0400 [thread overview]
Message-ID: <20130419200234.215de8c7b5dc7510025847b9@domain007.com> (raw)
In-Reply-To: <7vbo9b4fuz.fsf@alter.siamese.dyndns.org>
On Thu, 18 Apr 2013 15:46:12 -0700
Junio C Hamano <gitster@pobox.com> wrote:
> "Philip Oakley" <philipoakley@iee.org> writes:
>
> >> So I observe pushing/fetching works OK at least for a simple case
> >> like this one.
> >>
> >> Hence I'd like to ask: if the manual page is wrong or I'm observing
> >> some corner case?
> >> --
> > The manual is deliberately misleading.
>
> Yes, it is erring on the safe side.
>
> It was not coded with the case where the gap widens (e.g. either
> side rewinds the history) in mind as you explained; for simple cases
> the code just happens to work, but the users are encouraged not to
> rely on it to be safe than sorry.
Well, actually my question arouse during the discussion which followed
by this SO question [1] where someone asked if it's possible to update
just one file in a remote repository without cloning it first (a-la
Subversion, that is). While I perfectly understand that Git data model
does not support such "server-side commits" I'm able to envision a case
when, say, a developer is asked to perform some minor tweak to the code
while they're in a situation with no repository clone at hand and only a
crappy/costly cellular link available for communication. I think
shallow cloning might be a palliative solution to this kind of problem
(a one-off clone/edit/commit/push session).
Taking into account what Duy Nguyen said on this topic, it seems that
that description of the shallow cloning in the git-clone manual page
could supposedly be made somewhat less denying about what could be done
using a shallow clone. May be a note that such a setup could be okay
for very simple things like clone/edit/push would be just enough?
1. http://stackoverflow.com/q/16077691/720999
next prev parent reply other threads:[~2013-04-19 16:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-18 9:52 Pushing/fetching from/into a shallow-cloned repository Konstantin Khomoutov
2013-04-18 9:59 ` Konstantin Khomoutov
2013-04-18 20:27 ` Philip Oakley
2013-04-18 22:46 ` Junio C Hamano
2013-04-19 16:02 ` Konstantin Khomoutov [this message]
2013-04-19 11:22 ` Duy Nguyen
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=20130419200234.215de8c7b5dc7510025847b9@domain007.com \
--to=flatworm@users.sourceforge.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=kostix+git@007spb.ru \
--cc=philipoakley@iee.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).