{"thread":{"id":"9997","subject":"git-svn: Deleting directories","startedAt":"2007-09-24T14:04:26Z","lastAt":"2007-09-24T16:37:10Z","messageCount":2,"participants":["Russ Brown","Adam Roben"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"53919","messageId":"46F7C3EA.2080806@gmail.com","threadId":"9997","inReplyTo":null,"subject":"git-svn: Deleting directories","fromName":"Russ Brown","fromEmail":"pickscrape@gmail.com","sentAt":"2007-09-24T14:04:26Z","receivedAt":"2007-09-24T14:04:26Z","isPatch":false,"sender":{"key":"pickscrape@gmail.com","avatar":null},"body":"I've just noticed that when deleting entire directory trees in git, when\nthe dcommit happens only the files in that trees get deleted, which\nleaves a 'ghost town' of a directory tree with folders but no files,\nwhich will no doubt have somewhat confused my svn-using colleagues.\n\nThis is obviously an interoperability problem, but I understand that git\ndoes not track folders and is so tricky to fix.\n\nThe question though is how to handle it. Ideally, dcommit will detect\nthat an entire directory has gone and send through a changeset which\ndeletes just that one directory, instead of the current behaviour of\nexplicitly deleting every file in the directory but leaving the\ndirectories themselves intact.\n\n-- \n\nRuss\n"},{"id":"53930","messageId":"46F7E7B6.7000601@apple.com","threadId":"9997","inReplyTo":"46F7C3EA.2080806@gmail.com","subject":"Re: git-svn: Deleting directories","fromName":"Adam Roben","fromEmail":"aroben@apple.com","sentAt":"2007-09-24T16:37:10Z","receivedAt":"2007-09-24T16:37:10Z","isPatch":false,"sender":{"key":"aroben@apple.com","avatar":"https://gravatar.com/avatar/9d3697e1de53890adf241331f4b970bdd2b18962b2ff0b8028ebb00e085807f8?d=mp&s=160"},"body":"Russ Brown wrote:\n> I've just noticed that when deleting entire directory trees in git, when\n> the dcommit happens only the files in that trees get deleted, which\n> leaves a 'ghost town' of a directory tree with folders but no files,\n> which will no doubt have somewhat confused my svn-using colleagues.\n>\n> This is obviously an interoperability problem, but I understand that git\n> does not track folders and is so tricky to fix.\n>\n> The question though is how to handle it. Ideally, dcommit will detect\n> that an entire directory has gone and send through a changeset which\n> deletes just that one directory, instead of the current behaviour of\n> explicitly deleting every file in the directory but leaving the\n> directories themselves intact.\n>   \nThere's a similar problem when renaming a directory. dcommit will \nessentially commit a series of moves of individual files rather than \nmoving the whole directory. Again this is due to git not tracking \ndirectories. I should hope that whatever logic is used for detecting a \ndirectory removal may also be used for detecting a directory rename.\n\n-Adam\n"}]}