Re: [PATCH v2 00/14] Sparse checkout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/23/08, Santi Béjar <santi@xxxxxxxxxxx> wrote:> While I agree that the checkout attr looks like an attribute (so>  reusing attr.c is a good idea) and $GIT_DIR/info/gitattributes seems a>  good place to specify them, I think it will be better in the config>  $GIT_DIR/config. There it is clear that it is a local thing and you>  have "git config" to read and write them. Additionally you could have>  different patterns in the config (sparse.default, sparse.doc,>  sparse.src,...), although maybe it is not very useful.>>  I think the main UI to sparse checkout should be a default sparse>  pattern that is used for "all" commands, like merge, reset, and>  checkout. Now it is too easy to escape from the sparse checkout, when>  you merge or checkout a branch with new files, when doing a "git reset>  --hard" (when you abort a failed merge), or when doing a diff>  (specially when you pull).
I have made a patch to save default sparse patterns, something to playwith so we can have better idea how to do it properly.
There is another option --default-sparse in "git clone" and "gitcheckout". The option can be used to save default sparse patterns(specified by --sparse-checkout in "git clone" or --reset-sparse in"git checkout"). Something like this:
git clone --default-sparse --sparse-checkout=Documentation/ git.gitgit checkout --default-sparse --reset-sparse=t/
Default sparse patterns will be used for other unpack_trees()-relatedcommands like reset, read-tree, merge, pull... For "git checkout" itwill only be used when neither --full, --reset-sparse,--include-sparse nor --exclude-sparse is present. And it only appliesto newly-added files.
Patch series is in http://repo.or.cz/w/git/pclouds.git (branchsparse-checkout). Note that it also incorporates fixes and some optionrenames.-- Duy��.n��������+%������w��{.n��������n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�m


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux