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

🚀 Show when a directory as a whole was renamed, instead of each file inside it #1717

Open
Nemo157 opened this issue Jun 5, 2024 · 0 comments

Comments

@Nemo157
Copy link

Nemo157 commented Jun 5, 2024

When diffing a move of a large file tree the current output is very repetitive with every file individually listed. Given a small testcase (where I noticed this was with a ~220 file move):

> mkdir -p {left/foo,right/food}/{bar,baz,qux} && echo 'bar\nbar\nbar' | tee {left/foo,right/food}/bar/text >/dev/null && echo 'baz\nbaz\nbaz' | tee {left/foo,right/food}/baz/text >/dev/null && echo 'qux\nqux\nqux' > left/foo/qux/text && echo 'qux\nquack\nqux' > right/food/qux/text
> delta --no-gitconfig left right

image

It would be nice if this could just show the left/foo -> right/food directory rename, and highlight any few actually changed files within that.

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

No branches or pull requests

1 participant