Re: Empty directories in Git: Current guidance for historical commits?
- Date: Tue, 5 Sep 2017 16:31:30 -0400
- From: Jeff King <peff@xxxxxxxx>
- Subject: Re: Empty directories in Git: Current guidance for historical commits?
On Tue, Sep 05, 2017 at 12:47:43PM +0000, wafflecode@xxxxxxxxxxx wrote:
> Is just dropping a ".gitignore" or "README" file in the empty directories
> during conversion still the most reasonable approach?
Yes, I think so.
> If so, is there a way
> to do this automatically during the conversion using "git svn" or the like?
I haven't used git-svn in years, but the manpage says:
Create a placeholder file in the local Git repository for each
empty directory fetched from Subversion. This includes directories
that become empty by removing all entries in the Subversion
repository (but not the directory itself). The placeholder files
are also tracked and removed when no longer necessary.