- Notifications
You must be signed in to change notification settings - Fork2.5k
SwapGIT_DIFF_LINE_(ADD|DEL)_EOFNL
to match other Diffs#6240
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Signed-off-by: xphoniex <dj.2dixx@gmail.com>
I'm looking at failed CIs and can't really tell if there's something wrong with the code when it showing leaked memory or something wrong with bitbucket that's causing this. Can you please take a look@ethomson ? Test code is pretty straighforward, and the only thing I'm not freeing is |
Polite reminder@ethomson . |
Sorry for the long delay here — every time I came back to this PR, I was puzzled by the behavior. My misunderstanding was in the names of the constants — theline we're adding has a NL problem, this shouldn't that be In fact, no:
So Thanks again for the fix. |
Generating a diff using
git_diff_tree_to_tree
andgit_diff_from_buffer
return different result for the same patch of:Diff:
We didn't add the LF, we deleted it!