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

Re: A simpler approach to tracking directories (was: The philosophy behind my directory proposal in a nutshell)

From
Jakub Narebski <jnareb@gmail.com>
Date
Jul 22, 2007, 18:13 UTC
Message-ID
<f806bb$ib1$1@sea.gmane.org>
In-Reply-To
<20070722175731.GA16658@thunk.org>
Theodore Tso wrote:
Show 6 quoted lines
> Another way of putting is this single bit of information meaning "keep
> this directory around when empty" is something that ***must*** be
> representable in three different places: in a git tree object, in the
> index, *AND* in the working tree.  The problem with "." is that since
> all directories contain the "." entry, you can't represent the bit of
> information you want to record in the working tree in that way.

I don't think the "do not delete when empty" bit must be somehow represented in the working directory. It is enough to have this bit in index to deal with working directory, and in the repository to have it persistent.

Compare with submodules, and with unmerged entries (which sometimes do not have worktree representation).

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Theodore TsoNext: David Kastrup
Message 5 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.