Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FossilSCM, ignoring files on add

Tags:

fossil

I've done some research, but honestly can't seem to figure this out.

You can set some set some options to have fossil extras ignore files, but not fossil add? The configuration options through the web interface is great, and I'm pleased that it does work for the extras command, but it doesn't apply to the add command?

How does one configure fossil to ignore files on fossil add .?

like image 280
bbrietzke Avatar asked Dec 20 '10 16:12

bbrietzke


2 Answers

You can use the settings ignore-glob command to list the directories/files to ignore as a comma-separated list.

  1. On your repository's web interface, go to the Admin menu, select Settings and type the comma-separated list of directories to ignore; for example: */*.suo,*/*/bin/*,*/*/obj/*.
  2. Alternatively, on the command line you can type fossil settings ignore-glob to list the applied ignore list, or fossil settings ignore-glob list-of-files.
  3. You can also create/edit the .fossil-settings/ignore-glob at the root of the project and insert the comma-separated list of files/directories to ignore; I have not personally tested this, but I remember reading this online.

For example, on the command line you can do:

fossil settings ignore-glob "*/*.suo,*/*/bin/*,*/*/obj/*"

This would ignore all .suo files in every subdirectory at the Fossil repository root tree, and all the files in the bin and dir subdirectories at the each of the directory in the root directory.

like image 173
jbatista Avatar answered Oct 13 '22 16:10

jbatista


On Windows 7 (not tested on other platforms)

If you do

fossil add *.*

All ignore-glob settings are ignored (all files are added).

If you do

fossil add .

then ignore-glob settings are used.

like image 28
stevenally Avatar answered Oct 13 '22 16:10

stevenally