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

Re: [PATCH 15/16] checkout: add new options to support narrow checkout

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Sep 17, 2008, 16:32 UTC
Message-ID
<48D13128.3000509@viscovery.net>
In-Reply-To
<fcaeb9bf0809170649w418f4af5x3055c04994c694dc@mail.gmail.com>
Nguyen Thai Ngoc Duy schrieb:
> Well I've been asking about the name on this list long enough. I'm
> going with 'sparse checkout' as svn' sparse directories does not look
> too different from git's.
FWIW, /me likes 'sparse checkout'.
Show 5 quoted lines
> --path clears out all no-checkout bits and set again based on the
> given spec. --add-path adds more checkout entries based on the given
> spec, think of widening checkout area. --remove-path does narrow the
> checkout area. They are like '=', '+=' and '-=' operators
> respectively.

The still un-answered question was: In a full checkout, i.e. in a repository where the narrow/sparse checkout feature has never been used so far, is

   $ git checkout --add-path=foo
a no-op, or is it equivalent to
   $ git checkout --path=foo
Or stated differently: In the sequence
   $ git checkout --full
   $ git checkout --add-path=foo
is the second statement redundant?
-- Hannes
Previous: Nguyen Thai Ngoc DuyNext: Nguyen Thai Ngoc Duy
Message 7 of 9 in “Re: [PATCH 15/16] checkout: add new options to support narrow checkout”
  1. Jakub NarebskiSep 15, 2008
  2. Nguyen Thai Ngoc DuySep 15, 2008
  3. Jakub NarebskiSep 15, 2008
  4. Nguyen Thai Ngoc DuySep 16, 2008
  5. Jakub NarebskiSep 17, 2008
  6. Nguyen Thai Ngoc DuySep 17, 2008
  7. Johannes SixtSep 17, 2008
  8. Nguyen Thai Ngoc DuySep 17, 2008
  9. Jakub NarebskiSep 17, 2008

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.