Re: Empty directories...

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Kastrup <dak@...>
Cc: <git@...>
Date: Wednesday, July 18, 2007 - 7:24 am

Hi,

On Wed, 18 Jul 2007, David Kastrup wrote:


No, no, no.  It should not be tracked.  It is the responsibility of the 
_user_ to set it to something sane, be that by a umask or by sticky 
groups, or by setting the permissions of the parent directory.

It is _nothing_ we want to put into the repository.  That is the _wrong_ 
place to put it.


Why don't you?  I have no problems with the title.


This question is invalid.  Git only tracks the _executable_ bit.  And 
again, it is the users' responsibility, by setting the umask, to have the 
appropriate bits set for group and others.


I have.  But that does not apply here, because I used the term "to add a 
directory" in the sense of "mkdir".


Git already throws an error, and rightfully so.  I am pleased by the 
current behaviour.


Hey, I only tried to help clarify things.

But since I seem to be unable to, I'll end my efforts with this 
suggestion:

If you want to track empty directories, the best thing would be to

- teach git-add to automatically create an empty .gitignore (and error out 
  if that already exists), and

- teach git-archive to not put .gitignore files into the output by default 
  (but the directories).  This might be a sensible change regardless if 
  you want to add empty directories to the repository or not.

Ciao,
Dscho

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Empty directories..., Johannes Schindelin, (Wed Jul 18, 7:24 am)
Re: Empty directories..., Matthieu Moy, (Wed Jul 18, 7:40 am)