Re: Handling empty directories in Git

2014-04-11 Thread Øyvind A . Holm
On 8 April 2014 16:47, Olivier LE ROY wrote: > Hello, > > I have a project under SVN with contains empty directories. > > I would like to move this project on a Git server, still handling empty > directories. > > The solution: put a .gitignore file in each empty directory to have them > recogniz

Re: Handling empty directories in Git

2014-04-08 Thread Olivier LE ROY
t;git@vger.kernel.org" Envoyé le : Mardi 8 avril 2014 17h36 Objet : Re: Handling empty directories in Git Matthieu Moy writes: > The reason would be closer to "there is a valuable reason, but not > valuable enough to change Git to do it". It's actually not so easy

Re: Handling empty directories in Git

2014-04-08 Thread Olivier LE ROY
Hi Mattieu, thanks for this answer. It is clear enough. Olivier LE ROY - Mail original - De : Matthieu Moy À : Olivier LE ROY Cc : "git@vger.kernel.org" Envoyé le : Mardi 8 avril 2014 17h03 Objet : Re: Handling empty directories in Git Olivier LE ROY writes: > The

Re: Handling empty directories in Git

2014-04-08 Thread Olivier LE ROY
programming in Java and programming in plain old C. Olivier LE ROY De : Andrew Keller À : Olivier LE ROY Cc : "git@vger.kernel.org" Envoyé le : Mardi 8 avril 2014 17h02 Objet : Re: Handling empty directories in Git On Apr 8, 2014, at 10:47 AM, Oliv

Re: Handling empty directories in Git

2014-04-08 Thread David Kastrup
Matthieu Moy writes: > The reason would be closer to "there is a valuable reason, but not > valuable enough to change Git to do it". It's actually not so easy to > track directories properly. Storing them in the Git repository is > actually possible (actually, an empty tree is a special case of t

Re: Handling empty directories in Git

2014-04-08 Thread Andrew Keller
On Apr 8, 2014, at 1:02 PM, Andrew Keller wrote: > On Apr 8, 2014, at 10:47 AM, Olivier LE ROY wrote: > >> Hello, >> >> I have a project under SVN with contains empty directories. >> >> I would like to move this project on a Git server, still handling empty >> directories. >> >> The soluti

Re: Handling empty directories in Git

2014-04-08 Thread Matthieu Moy
Olivier LE ROY writes: > The solution: put a .gitignore file in each empty directory to have them > recognized by the Git database cannot work, because some scripts in my > projects test the actual emptiness of the directories. Another option is to have a post-checkout hook that does the mkdir

Re: Handling empty directories in Git

2014-04-08 Thread Andrew Keller
On Apr 8, 2014, at 10:47 AM, Olivier LE ROY wrote: > Hello, > > I have a project under SVN with contains empty directories. > > I would like to move this project on a Git server, still handling empty > directories. > > The solution: put a .gitignore file in each empty directory to have them

Handling empty directories in Git

2014-04-08 Thread Olivier LE ROY
Hello, I have a project under SVN with contains empty directories. I would like to move this project on a Git server, still handling empty directories. The solution: put a .gitignore file in each empty directory to have them recognized by the Git database cannot work, because some scripts in