From: wafflecode@openmail.cc Date: Tue, 05 Sep 2017 22:17:32 GMT Subject: Re: Empty directories in Git: Current guidance for historical commits? Message-ID: <20170905221732.Horde.QL8bINNPhkH82YmIiqhsUY9@vfemail.net> In-Reply-To: Quoting Torsten Bögershausen : >> Is just dropping a ".gitignore" or "README" file in the empty >> directories during >> conversion still the most reasonable approach? > > A .gitignore will, but may cost 0.001% CPU time when running "git status". > I have seen systems that create a file called ".empty" in every directory. > >> If so, is there a way to do this >> automatically during the conversion using "git svn" or the like? > > Not what I am aware of. > And even if, the .empty files need to be removed, once the directory is > removed. > And we don't have logic for that, as far as I know. > So upon re-reading the git-svn docs, there apparently _are_ "--preserve-empty-dirs" and "--placeholder-filename=" options. I'm not sure how I missed these. :-/ If I understand correctly, it sounds like exactly what I want. i.e. a placeholder file being added (and tracked) to each empty folder. Are there known issues or limitations to be aware of? Thank you, David ------------------------------------------------- ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!