Code

git-svn: New flag to emulate empty directories
authorRay Chen <rchen@cs.umd.edu>
Wed, 20 Jul 2011 22:37:26 +0000 (18:37 -0400)
committerEric Wong <normalperson@yhbt.net>
Thu, 1 Sep 2011 07:10:22 +0000 (07:10 +0000)
commit40a1530c07a6a720b6cfa52c6132274fac4e4112
treefeabfa82ea7a7f07ce219b29962ac11c3efee468
parent4b5eac7f03f411f75087e0b6db23caa999624304
git-svn: New flag to emulate empty directories

Adds a --preserve-empty-dirs flag to the clone operation that will detect
empty directories in the remote Subversion repository and create placeholder
files in the corresponding local Git directories.  This allows "empty"
directories to exist in the history of a Git repository.

Also adds the --placeholder-file flag to control the name of any placeholder
files created.  Default value is ".gitignore".

Signed-off-by: Ray Chen <rchen@cs.umd.edu>
Acked-by: Eric Wong <normalperson@yhbt.net>
Documentation/git-svn.txt
git-svn.perl
t/t9160-git-svn-preserve-empty-dirs.sh [new file with mode: 0755]