When giving the set command to change some option and you’re outside an open 
repo directory, the global setting is affected instead, even though the 
–-global option is not given.

So, one can very easily mess up their global setup by accidentally attempting 
to set a local option but either from the wrong directory or from right 
directory but with the repo being closed at the moment.

I think the –-global option should be required at all times to change the 
global version of the option as a safeguard against these kinds of mistakes.

Besides, the help screen seem to imply the same by not being clear about what 
happen when a repo is not open.

Options:
  --global   set or unset the given property globally instead of
             setting or unsetting it for the open repository only.

Thanks.
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to