git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christian Jaeger <christian@jaeger.mine.nu>
To: Richard Hartmann <richih.mailinglist@gmail.com>
Cc: Garry Dolley <gdolley@arpnetworks.com>, git@vger.kernel.org
Subject: Re: Feedback outside of the user survey
Date: Thu, 16 Oct 2008 22:32:56 +0200	[thread overview]
Message-ID: <48F7A4F8.2080600@jaeger.mine.nu> (raw)
In-Reply-To: <2d460de70810160618u1803375aj913145a5060e5308@mail.gmail.com>

Richard Hartmann wrote:
> On Thu, Oct 16, 2008 at 13:56, Garry Dolley <gdolley@arpnetworks.com> wrote:
>
>   
>> I know from an external point of view, it seems pulling a subdir
>> wouldn't be a big deal; but if you look at git internals, you start
>> to realize why it's an option that isn't on the table.
>>     

Hm, I don't see a fundamental technical problem which would prevent one 
from implementing the ability to checkout only a subdirectory into the 
working directory (i.e. to add options to Git to make it reflect the 
working directory as being a subdirectory of what is in Git's database). 
At this level I don't see anything inherently different from SVN--except 
maybe for directory renames: if someone else is renaming the directory 
you've checked out, what should happend with your checkout? Git's 
filebased rename tracking would just lead to everything vanishing from 
your checkout. I don't know what happens in SVN, maybe it keeps track of 
the directory rename and still sends you the changes of the directory 
you've checked out even if it has now a different name on the server?

Anyway, an unavoidable difference is that you have to always clone the 
whole Git *database*. With SVN the database stays on the server, with 
Git it is being cloned. Just as I expect SVN to need the whole database 
to be able to work (tracking renames across directories etc.), Git needs 
the whole database too. So implementing subdirectory workingdir 
checkouts wouldn't help reduce the bandwidth and storage necessary for 
getting at the database.

>
> That's my understanding as well. And you can simply branch
> out a subdir when you want to work on it.
>   

I guess what you are referring to is

 $ git clone git://foo.com/bar.git
 $ cd bar
 $ rm -rf *
 $ git checkout somesubdir

Now you've got only somesubdir/ below bar/. This solves the rename 
problem insofar, as somesubdir will just be renamed if someone else 
commits a "git mv somesubdir somethingelse" and you pull that change. 
But there's also another caveat: "git status" will of course report the 
other files as deleted, which is an accident waiting to happen when you 
next run "git commit -a".

(In any case, this is just thinking louder than I deserve, as there's no 
code at all in Git written by me.)

Christian.

  reply	other threads:[~2008-10-16 20:34 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-16 10:19 Feedback outside of the user survey Richard Hartmann
2008-10-16 10:28 ` Jeff King
2008-10-16 11:08   ` Richard Hartmann
2008-10-16 11:56 ` Garry Dolley
2008-10-16 13:18   ` Richard Hartmann
2008-10-16 20:32     ` Christian Jaeger [this message]
2008-10-18 13:49       ` Garry Dolley
2008-10-18 14:01         ` Christian Jaeger
2008-10-20  9:57           ` Andreas Ericsson
2008-10-20 14:43             ` Christian Jaeger
2008-10-20 15:02               ` Andreas Ericsson
2008-10-20 15:20                 ` Christian Jaeger
2008-10-20 16:11                   ` Andreas Ericsson
2008-10-20 16:57                     ` Christian Jaeger
2008-10-20 17:30                       ` Christian Jaeger
2008-10-20 22:41                       ` Junio C Hamano
2008-10-21  7:24                         ` Christian Jaeger

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=48F7A4F8.2080600@jaeger.mine.nu \
    --to=christian@jaeger.mine.nu \
    --cc=gdolley@arpnetworks.com \
    --cc=git@vger.kernel.org \
    --cc=richih.mailinglist@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).