jeftadlvw / git-nest

Nest external repositories into your project without git being bothered.
https://github.com/jeftadlvw/git-nest
Apache License 2.0
1 stars 1 forks source link

🚸 `info` --redact should replace path parts with placeholders #35

Open jeftadlvw opened 4 months ago

jeftadlvw commented 4 months ago

Currently, running info with the --redact flag calculates relative paths from the cwd. This is fine. By default, the repository root and project root should not be different. But if they do, the relative paths still leak the single path names. They should be replaced with placeholders (e.g. letters of the standard English alphabet).

It's also important to consider filesystem case-sensitivity when comparing and mapping path parts to placeholders.