{"thread":{"id":"27850","subject":"about directory management","startedAt":"2011-07-19T06:07:06Z","lastAt":"2011-07-19T07:53:33Z","messageCount":3,"participants":["J. Bakshi","Chris Packham"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"171638","messageId":"20110719113706.0aca61b5@shiva.selfip.org","threadId":"27850","inReplyTo":null,"subject":"about directory management","fromName":"J. Bakshi","fromEmail":"joydeep@infoservices.in","sentAt":"2011-07-19T06:07:06Z","receivedAt":"2011-07-19T06:07:06Z","isPatch":false,"sender":{"key":"joydeep@infoservices.in","avatar":null},"body":"Hello,\n\nI need to add directory structure in my git repo where some of the directory are empty but still need to add those to maintain the structure. I also need to add directory as non-recursive, so that I can add the final child directory so get the structure. How can git help to do these ?\n\nThanks\n"},{"id":"171641","messageId":"4E253603.7020403@gmail.com","threadId":"27850","inReplyTo":"20110719113706.0aca61b5@shiva.selfip.org","subject":"Re: about directory management","fromName":"Chris Packham","fromEmail":"judge.packham@gmail.com","sentAt":"2011-07-19T07:45:07Z","receivedAt":"2011-07-19T07:45:07Z","isPatch":false,"sender":{"key":"judge.packham@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155667?v=4"},"body":"On 19/07/11 18:07, J. Bakshi wrote:\n> Hello,\n> \n> I need to add directory structure in my git repo where some of the directory are empty but still need to add those to maintain the structure. I also need to add directory as non-recursive, so that I can add the final child directory so get the structure. How can git help to do these ?\n> \n> Thanks\n> --\n\nOne of the things that makes git different from other SCMs is that it\ntracks sets of changes (i.e. commits) not individual files/directories.\nMy initial response is to tell you to create the directories when you've\ngot something to put into them and not before. If they are needed for\ncompilation of your code then make it part of the build process. If you\ndo have a reason for needing empty directories the standard response is\nto put a .dummy file in the directory (you only need it in the deepest\ndirectory, not every directory on the path).\n"},{"id":"171642","messageId":"20110719132333.1713c52b@shiva.selfip.org","threadId":"27850","inReplyTo":"4E253603.7020403@gmail.com","subject":"Re: about directory management","fromName":"J. Bakshi","fromEmail":"joydeep@infoservices.in","sentAt":"2011-07-19T07:53:33Z","receivedAt":"2011-07-19T07:53:33Z","isPatch":false,"sender":{"key":"joydeep@infoservices.in","avatar":null},"body":"On Tue, 19 Jul 2011 19:45:07 +1200\nChris Packham <judge.packham@gmail.com> wrote:\n\n> On 19/07/11 18:07, J. Bakshi wrote:\n> > Hello,\n> > \n> > I need to add directory structure in my git repo where some of the directory are empty but still need to add those to maintain the structure. I also need to add directory as non-recursive, so that I can add the final child directory so get the structure. How can git help to do these ?\n> > \n> > Thanks\n> > --\n> \n> One of the things that makes git different from other SCMs is that it\n> tracks sets of changes (i.e. commits) not individual files/directories.\n> My initial response is to tell you to create the directories when you've\n> got something to put into them and not before. If they are needed for\n> compilation of your code then make it part of the build process. If you\n> do have a reason for needing empty directories the standard response is\n> to put a .dummy file in the directory (you only need it in the deepest\n> directory, not every directory on the path).\n> \n> \n\nThanks for your valuable clarification and notes.\n"}]}