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

🐛 use diff -u for files larger than 1 GB #1927

Open
gy-mate opened this issue Dec 12, 2024 · 0 comments
Open

🐛 use diff -u for files larger than 1 GB #1927

gy-mate opened this issue Dec 12, 2024 · 0 comments

Comments

@gy-mate
Copy link

gy-mate commented Dec 12, 2024

  1. Run:
    delta a-file-larger-than-1GB.txt another-file-larger-than-1GB.txt
  2. Get the error:
    fatal: unable to generate diff for a-file-larger-than-1GB.txt
    'git' process failed with exit status 128. Command was: git diff --no-index --color -- a-file-larger-than-1GB.txt another-file-larger-than-1GB.txt
    

I think this is due to https://github.com/git/git/blob/master/xdiff-interface.h#L12 so delta should use diff -u automatically for files larger than 1 GB minus 1 MB.

@gy-mate gy-mate changed the title Use diff -u for files larger than 1 GB 🐛 use diff -u for files larger than 1 GB Dec 12, 2024
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