* about directory management
@ 2011-07-19 6:07 J. Bakshi
2011-07-19 7:45 ` Chris Packham
0 siblings, 1 reply; 3+ messages in thread
From: J. Bakshi @ 2011-07-19 6:07 UTC (permalink / raw)
To: git
Hello,
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 ?
Thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: about directory management
2011-07-19 6:07 about directory management J. Bakshi
@ 2011-07-19 7:45 ` Chris Packham
2011-07-19 7:53 ` J. Bakshi
0 siblings, 1 reply; 3+ messages in thread
From: Chris Packham @ 2011-07-19 7:45 UTC (permalink / raw)
To: J. Bakshi; +Cc: git
On 19/07/11 18:07, J. Bakshi wrote:
> Hello,
>
> 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 ?
>
> Thanks
> --
One of the things that makes git different from other SCMs is that it
tracks sets of changes (i.e. commits) not individual files/directories.
My initial response is to tell you to create the directories when you've
got something to put into them and not before. If they are needed for
compilation of your code then make it part of the build process. If you
do have a reason for needing empty directories the standard response is
to put a .dummy file in the directory (you only need it in the deepest
directory, not every directory on the path).
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: about directory management
2011-07-19 7:45 ` Chris Packham
@ 2011-07-19 7:53 ` J. Bakshi
0 siblings, 0 replies; 3+ messages in thread
From: J. Bakshi @ 2011-07-19 7:53 UTC (permalink / raw)
To: Chris Packham; +Cc: git
On Tue, 19 Jul 2011 19:45:07 +1200
Chris Packham <judge.packham@gmail.com> wrote:
> On 19/07/11 18:07, J. Bakshi wrote:
> > Hello,
> >
> > 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 ?
> >
> > Thanks
> > --
>
> One of the things that makes git different from other SCMs is that it
> tracks sets of changes (i.e. commits) not individual files/directories.
> My initial response is to tell you to create the directories when you've
> got something to put into them and not before. If they are needed for
> compilation of your code then make it part of the build process. If you
> do have a reason for needing empty directories the standard response is
> to put a .dummy file in the directory (you only need it in the deepest
> directory, not every directory on the path).
>
>
Thanks for your valuable clarification and notes.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-19 7:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-19 6:07 about directory management J. Bakshi
2011-07-19 7:45 ` Chris Packham
2011-07-19 7:53 ` J. Bakshi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox