{"thread":{"id":"16754","subject":"git-svn and empty directories","startedAt":"2008-12-16T12:53:43Z","lastAt":"2008-12-22T08:58:55Z","messageCount":3,"participants":["Thomas Jarosch","Eric Wong"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"98071","messageId":"200812161353.49796.thomas.jarosch@intra2net.com","threadId":"16754","inReplyTo":null,"subject":"git-svn and empty directories","fromName":"Thomas Jarosch","fromEmail":"thomas.jarosch@intra2net.com","sentAt":"2008-12-16T12:53:43Z","receivedAt":"2008-12-16T12:53:43Z","isPatch":false,"sender":{"key":"thomas.jarosch@intra2net.com","avatar":"https://avatars.githubusercontent.com/u/1146758?v=4"},"body":"Hello Eric and Deskin,\n\nI'm currently looking into preserving empty directories from a SVN repository \nby automatically creating empty .gitignore files for them.\n\nThe control flow of the git-svn code is still a jungle to me,\nmaybe you have a hint how to implement a proof-of-concept code?\n\nI don't think I can just touch a .gitignore file in get_untracked()\nand those files will magically turn up in git's index...\n\nThanks,\nThomas\n"},{"id":"98478","messageId":"20081221070854.GA22014@hand.yhbt.net","threadId":"16754","inReplyTo":"200812161353.49796.thomas.jarosch@intra2net.com","subject":"Re: git-svn and empty directories","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2008-12-21T07:08:54Z","receivedAt":"2008-12-21T07:08:54Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Thomas Jarosch <thomas.jarosch@intra2net.com> wrote:\n> Hello Eric and Deskin,\n> \n> I'm currently looking into preserving empty directories from a SVN repository \n> by automatically creating empty .gitignore files for them.\n> \n> The control flow of the git-svn code is still a jungle to me,\n> maybe you have a hint how to implement a proof-of-concept code?\n> \n> I don't think I can just touch a .gitignore file in get_untracked()\n> and those files will magically turn up in git's index...\n\nHi Thomas,\n\nModern git-svn never touches the working tree during fetch, it hashes\nobjects into the database and adds those to the indexes directly.\n\nHowever, I don't think your proposal is a good idea since it adds too\nmuch \"magic\".  Complex special cases for delta application if the\n.gitignore gets real content and backwards-incompatibility since I know\nsome git-svn users already rely on pushing .gitignore files (empty or\notherwise) to an upstream SVN repo.\n\nThe minor problem of missing empty directories isn't big enough to be\nworth the trouble IMHO.\n\nThe unhandled.log is made to be machine parseable, so if somebody really\nwanted to recreate empty direct after checkout, they could write a\nscript that parses it and creates it based on the history of the current\nworking tree.\n\n-- \nEric Wong\n"},{"id":"98539","messageId":"200812220958.55614.thomas.jarosch@intra2net.com","threadId":"16754","inReplyTo":"20081221070854.GA22014@hand.yhbt.net","subject":"Re: git-svn and empty directories","fromName":"Thomas Jarosch","fromEmail":"thomas.jarosch@intra2net.com","sentAt":"2008-12-22T08:58:55Z","receivedAt":"2008-12-22T08:58:55Z","isPatch":false,"sender":{"key":"thomas.jarosch@intra2net.com","avatar":"https://avatars.githubusercontent.com/u/1146758?v=4"},"body":"Hello Eric,\n\nOn Sunday, 21. December 2008 08:08:54 Eric Wong wrote:\n> Modern git-svn never touches the working tree during fetch, it hashes\n> objects into the database and adds those to the indexes directly.\n\nOk\n\n> However, I don't think your proposal is a good idea since it adds too\n> much \"magic\".  Complex special cases for delta application if the\n> .gitignore gets real content and backwards-incompatibility since I know\n> some git-svn users already rely on pushing .gitignore files (empty or\n> otherwise) to an upstream SVN repo.\n>\n> The minor problem of missing empty directories isn't big enough to be\n> worth the trouble IMHO.\n\nOk, this seems to be too much effort to fix. I manually added the directories\nto my HEAD version and really hope I don't have to ever checkout\nand build something from the past *fingers crossed* :-)\n\nCheers,\nThomas\n"}]}