Part of bzrlib
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 101 | Function | parse_ignore_file | Read in all of the lines in the file and turn it into an ignore list |
| 112 | Function | get_user_ignores | Get the list of user ignored files, possibly creating it. |
| 160 | Function | add_unique_user_ignores | Add entries to the user's ignore list if not present. |
| 190 | Function | add_runtime_ignores | Add some ignore patterns that only exists in memory. |
| 205 | Function | get_runtime_ignores | Get the current set of runtime ignores. |
| 139 | Function | _set_user_ignores | Fill out the user ignore file with the given patterns |
This may raise an error if it doesn't have permission to write to the user ignore file. This is mostly used for testing, since it would be bad form to rewrite a user's ignore list. bzrlib only writes this file if it does not exist.
| Parameters | new_ignores | A list of ignore patterns |
| Returns | The list of ignores that were added | |
This is used by some plugins that want bzr to ignore files, but don't want to change a users ignore list. (Such as a conversion script that needs to ignore temporary files, but does not want to modify the project's ignore list.)
| Parameters | ignores | A list or generator of ignore patterns. |
| Returns | None | |