git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Empty directories in Git: Current guidance for historical commits?

From
Jeff King <peff@peff.net>
Date
Sep 5, 2017, 20:31 UTC
Message-ID
<20170905203130.fgleyt7josyjnps7@sigill.intra.peff.net>
In-Reply-To
<20170905124743.Horde.bgYg8gUhE6ubSHtPAr3lCGl@vfemail.net>
On Tue, Sep 05, 2017 at 12:47:43PM +0000, wafflecode@openmail.cc 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:
  --preserve-empty-dirs
      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.
-Peff
Previous: wafflecode@openmail.cc
Message 4 of 4 in “Empty directories in Git: Current guidance for historical commits?”
  1. wafflecode@openmail.ccSep 5, 2017
  2. Torsten BögershausenSep 5, 2017
  3. wafflecode@openmail.ccSep 5, 2017
  4. Jeff KingSep 5, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.