]> git.madduck.net Git - etc/vim.git/blob - docs/ignoring_unmodified_files.md

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Simplification: only yield empty omit list when magic trailing comma is present
[etc/vim.git] / docs / ignoring_unmodified_files.md
1 [//]: # "NOTE: THIS FILE WAS AUTOGENERATED FROM README.md"
2
3 # Ignoring unmodified files
4
5 _Black_ remembers files it has already formatted, unless the `--diff` flag is used or
6 code is passed via standard input. This information is stored per-user. The exact
7 location of the file depends on the _Black_ version and the system on which _Black_ is
8 run. The file is non-portable. The standard location on common operating systems is:
9
10 - Windows:
11   `C:\\Users\<username>\AppData\Local\black\black\Cache\<version>\cache.<line-length>.<file-mode>.pickle`
12 - macOS:
13   `/Users/<username>/Library/Caches/black/<version>/cache.<line-length>.<file-mode>.pickle`
14 - Linux:
15   `/home/<username>/.cache/black/<version>/cache.<line-length>.<file-mode>.pickle`
16
17 `file-mode` is an int flag that determines whether the file was formatted as 3.6+ only,
18 as .pyi, and whether string normalization was omitted.
19
20 To override the location of these files on macOS or Linux, set the environment variable
21 `XDG_CACHE_HOME` to your preferred location. For example, if you want to put the cache
22 in the directory you're running _Black_ from, set `XDG_CACHE_HOME=.cache`. _Black_ will
23 then write the above files to `.cache/black/<version>/`.