git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: restriction of pulls

From
Jakub Narebski <jnareb@gmail.com>
Date
Feb 9, 2007, 11:19 UTC
Message-ID
<eqhl87$ut3$1@sea.gmane.org>
In-Reply-To
<200702091149.12462.duelli@melosgmbh.de>
Christoph Duelli wrote:
Show 12 quoted lines
> Is it possible to restrict a chechout, clone or a later pull to some 
> subdirectory of a repository?
> (Background: using subversion (or cvs), it is possible to do a file or 
> directory-restricted update.)
> 
> Say, I have a repository containing 2 (mostly) independent projects
> A and B (in separate) directories:
> - R
>   -  A
>   -  B
> Is it possibly to pull all the changes made to B, but not those made to A. 
> (Yes, I know that this causes trouble if there are dependencies into A.)

No, it is not possible. Moreover, it is not sensible, as it breaks atomicity of a commit. Well, you can hack, but...

That said, there is experimental submodule (subproject) support
  http://git.or.cz/gitwiki/SubprojectSupport
  http://git.admingilde.org/tali/git.git/module2
(there was also proposal of more lightweight submodule support, but I don't
have a link to it), and you should have set A and B as submodules
(subprojects).
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Christoph DuelliNext: Johannes Schindelin
Message 2 of 13 in “restriction of pulls”
  1. Christoph DuelliFeb 9, 2007
  2. Jakub NarebskiFeb 9, 2007
  3. Johannes SchindelinFeb 9, 2007
  4. Rogan DawesFeb 9, 2007
  5. Andy ParkinsFeb 9, 2007
  6. Rogan DawesFeb 9, 2007
  7. Andy ParkinsFeb 9, 2007
  8. Rogan DawesFeb 9, 2007
  9. Andy ParkinsFeb 10, 2007
  10. Johannes SchindelinFeb 10, 2007
  11. Rogan DawesFeb 12, 2007
  12. Johannes SchindelinFeb 12, 2007
  13. Rogan DawesFeb 12, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.