On Tue, Apr 11, 2017 at 3:39 PM, Scott Robison <[email protected]> wrote: > On Tue, Apr 11, 2017 at 3:21 PM, Thomas <[email protected]> wrote: >> On 2017-04-11 22:11, Thomas wrote: >> >> add >> --ignore <CSG> Ignore unmanaged files matching >> patterns from the comma separated list of >> glob patterns. >> --exclude <CSG> Exclude files matching patterns from >> the comma separated list of glob patterns. >> >> The same for addremove, I guess. > > I've updated the documentation for --ignore for add and addremove. > Adding exclude is more than I have time for at this moment. Baby > steps.
I still think there is a fundamental misunderstanding about addremove. You create a new repo. You run fossil addremove and get everything in there, including things you don't want because you've never setup ignore globs. You commit. Now you know you need ignore, so you type fossil addremove --ignore '*.whatever'. Files matching *.whatever that are already in the repo will not be removed from the repo. Files matching *.whatever that are not in the repo will not be added to the repo. fossil addremove does not commit files, it just prepares to add or remove them in the next commit. Has your point been that running "addremove --ignore '*.whatever'" treat files matching those patterns as missing so they will be removed at the next commit? I don't think so because you said you didn't expect it to remove the files. But you are surprised that --ignore isn't ignoring files in addremove, and according to each and every test I've run, it does ignore those unmanaged files so they are not added. Maybe you could try a new repository from scratch and try it the way I described in my earlier posts. Or maybe you could give me the exact command line you are running, and the fossil version output, and even the OS / shell you are using so that I can see if there is something else surprising about this. -- Scott Robison _______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

