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

Re: A simpler approach to tracking directories

From
JFJ. Bruce Fields <bfields@fieldses.org>
Date
Jul 22, 2007, 21:45 UTC
Message-ID
<20070722214540.GA821@fieldses.org>
In-Reply-To
<85myxoi8fi.fsf@lola.goethe.zz>
On Sun, Jul 22, 2007 at 08:45:37PM +0200, David Kastrup wrote:
Show 11 quoted lines
> Theodore Tso <tytso@mit.edu> writes:
> > One of the fundamental things which falls out of the "Git Tracks
> > Contents" mantra is that information which you expect to be pushed
> > forward future revisions (as opposed to metadata which is specific
> > to a commit, such as the Author and Committer of a patch, the Commit
> > log, etc.) *MUST* be information which is realized in the working
> > tree.
> 
> For every _file_ in the working tree, there is _one_ bit of
> information in the repository that is not in the working tree: namely
> whether git is tracking this file at all.

Actually, no. The index just stores data for a given set of files. You can think of the set of files for which data is stored in the index as the set that is "tracked", but there's no independent "tracked/untracked" bit, and no way of marking a path as tracked without also adding content at that path.

--b.
Previous: David Kastrup
Message 7 of 7 in “The philosophy behind my directory proposal in a nutshell”
  1. David KastrupJul 21, 2007
  2. git-rm semantics (was: The philosophy behind my directory proposal in a nutshell)David Kastrup, Jul 21, 2007
  3. A simpler approach to tracking directories (was: The philosophy behind my directory proposal in a nutshell)David Kastrup, Jul 22, 2007
  4. Theodore TsoJul 22, 2007
  5. Jakub NarebskiJul 22, 2007
  6. David KastrupJul 22, 2007
  7. J. Bruce FieldsJul 22, 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.