Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output paths relative to current working directory #565

Merged
merged 4 commits into from
Apr 24, 2021

Conversation

dandavison
Copy link
Owner

@dandavison dandavison commented Apr 21, 2021

Fixes #552

TODO:

  • Make things correct when git's --relative is in effect
  • Add option to control this: Done: --relative-paths
  • Add option to control padding width when this is active: Done: this is --diff-stat-align-width
  • Would --max-relative-path-length be a better name? No.

Out of scope for this PR:

  • Process all lines in the diff stat before emitting any of them so that the max path length can be determined.

@dandavison dandavison force-pushed the file-regex-replacement branch 2 times, most recently from cb4751b to 59fcacc Compare April 24, 2021 16:35
@dandavison dandavison force-pushed the file-regex-replacement branch from 59fcacc to dc8a6fc Compare April 24, 2021 20:43
@dandavison dandavison merged commit 97671f7 into master Apr 24, 2021
@dandavison dandavison deleted the file-regex-replacement branch April 24, 2021 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀 Transform file paths to be relative to current directory
1 participant