Skip to content

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