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

Re: [RFC] Light-weight checkouts via ".gitlink"

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 8, 2006, 22:18 UTC
Message-ID
<elco6p$uku$1@sea.gmane.org>
In-Reply-To
<200612082252.31245.Josef.Weidendorfer@gmx.de>
A few (very few) comments:
Josef Weidendorfer wrote:
> This can be implemented by enhancing git to ignore any subdirectory which
> has a file .gitlink in it.

If I remember correctly, while git ignores .git, it does not ignore by default (i.e. without entry in either GIT_DIR/info/excludes, or .gitignore) the directory which has .git directory in it.

And that should not change for .gitlink. You can always add
.gitignore file with * .* patterns in it (ignore all).
 
> * Gitdir = "<Path to base git repository>"
[...]
> * Name: <explicit name for this checkout>

Why use once "key = value", once "key: value" form? Better to stick with one. I Would prefer "key = value" one.

GIT_DIR = path to base git repository it is equivalent to setting the following:

GIT_INDEX_FILE = path to index file GIT_OBJECT_DIRECTORY = path to object directory GIT_HEAD_FILE = path to HEAD file GIT_REFS_DIRECTORY = path to refs directory

NAME = name should match "name subdirectory" entry in modules file in superproject.

Perhaps instead of adding arbitrary number of .. in front of relative path, we better use some magic, like ... for finding somewhere up?

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Josef WeidendorferNext: Josef Weidendorfer
Message 2 of 8 in “[RFC] Light-weight checkouts via ".gitlink"”
  1. Josef WeidendorferDec 8, 2006
  2. Jakub NarebskiDec 8, 2006
  3. Josef WeidendorferDec 8, 2006
  4. Jakub NarebskiDec 8, 2006
  5. Josef WeidendorferDec 8, 2006
  6. Josef WeidendorferDec 8, 2006
  7. Jakub NarebskiDec 8, 2006
  8. Josef WeidendorferDec 9, 2006

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.