Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
filename:absname/2
to resolve absolute paths
This handles Windows' `volumerelative` path types by properly resolving them based on the "per-drive" working directory. Also, resolve the input file absolute paths. This is new functionality; if you were previously to use a file path like `a/../b`, that would have been directly matched against the excludes. As a result, an exclude of `b` would not have applied. This change makes sure relative path resolution is consistent between `files`/`exclude_files`. To avoid displaying different paths from what was requesting by config or CLI options (e.g. when using the verbose flag), use a map of absolute paths -> original paths and return the original paths from `erlfmt_cli:set_difference/2` after applying excludes.
- Loading branch information