| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
This means there is no need to call system API to get the CWD each time.
In addition, some operations such as making root and origin absolute
happen only once. The functions are also smaller and more
straight-forward overall.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
This round adds tests that provide a mixture of absolute and relative
paths, forcing it to standardize by making them all absolute upfront.
To decouple tests from `env::current_dir()`, a specialized internal
function was created for tests. The original function simply calls
`env::current_dir()` and passes its return value to the hidden function,
on which tests are run.
|
| |
|
|
|
|
|
|
|
| |
The previous verion failed if recursive `root.parent()` reached an
error, but thinking about it, if the two paths have different starting
points (like Windows drives), then the desirable function would be to
return the absolute target path as-is. Naturally, the current funtion
gives a wrong output if the supplied arguments are not absolute, but
that shall be enforced using a future test.
|
| |
|
|
|
| |
This is still not complete, as it panics if target_path is not reachable
from root.
|
| | |
|
| |
|
|
|
|
| |
The filenames displayed in the output markdown should be consistent,
regardless of the way they were input to the program (absolute,
relative). They should always be relative to the project root.
|
| |
|