Git does not store directories. For a directory to be created during a checkout a file needs to be in it. We sometime put an empty .gitignore in a directory that needs to exist but will have nothing in it. it could be any empty file .placeholder, whatever.
The benefit of the .gitignore is that you can add the files that are supposed to be ignored in the file. Jesse On Thu, May 26, 2011 at 6:46 AM, Jody Garnett <[email protected]> wrote: > On Thursday, 26 May 2011 at 5:27 AM, Jesse Eichar wrote: > > Jody, > > Any reason we don't put a .gitignore file in those source directories > so they are checked out as directories and we don't get reports like > this any more? > > Jesse > > I missed something Jesse; is ".gitignore" causing those the src folders to > be ignored? I though we could just not commit empty directories. > Checking... > net.refractions.udig.libs.source: > . .project refresh.xml > .. META-INF src > .classpath build.properties util > .externalToolBuilders dest.properties > .gitignore plugin.xml > net.refractions.udig_application.source: > . META-INF plugin.xml > .. bin src > .classpath build.properties > .project dev.properties > net.refractions.udig_platform.source: > . META-INF plugin.xml > .. bin src > .classpath build.properties > .project dev.properties > net.refractions.udig_printing.source: > . .project build.properties > .. META-INF plugin.xml > .classpath bin src > net.refractions.udig_sdk.source: > . .settings plugin.xml > .. META-INF src > .classpath bin > .project build.properties > net.refractions.udig_tutorials.source: > . .project build.properties > .. META-INF plugin.xml > .classpath bin src > So we have one .gitignore in net.refractions.udig.libs.source > I can see a .gitignore that lists the "lib" folder as to be ignored. That > would make sense to me as we don't want to accidentally commit a bunch of > jars (especially when the jars change each time we release?). > So I don't think I understand your feedback... > Jody > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel > > _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
