On Sat, Oct 24, 2009 at 02:57:11PM +0000, Nick B wrote: > I have a number of modified files but I would like to commit only a > few files in a single subdirectory. > > Typing "fossil changes" returns > <snip list of EDITED files> > MISSING brightside/images/bg.gif > EDITED brightside/images/headerbg.gif > EDITED brightside/images/tableft.gif > EDITED brightside/images/tabright.gif > > In the parent directory if I enter: > "fossil commit images" or "fossil commit images/" returns > "fossil: fossil knows nothing about: images/" > > Similarly if I use: > > "fossil commit images/*" returns > "fossil: fossil knows nothing about: images/bg.gif.old" > > In this case the file bg.gif.old can be safely ignored as I only want > to commit edited files. > > What command do I use to commit the subdirectory images? > > Thanks _________________________________________________________________
When I add a subdirectory to my repository I usually do fossil add subdirectory which will add the subdirectory and its contents. Future 'fossil commit' automatically get the editted files in the subdirectory. You would have to 'fossil add' any new ones. If you already have cruft in the subdir, though, and have not added the subdir, then doing fossil add subdirectory will add all the cruft as well. I suppose that at this point I would manually clean out (i.e. mv to a tmp location) anything I did not want to 'fossil add' which is in the images subdirectory, do the 'fossil add images', and then move whatever I wanted back into the directory. ~Michael _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users