Swap GIT_DIFF_LINE_(ADD|DEL)_EOFNL to match other Diffs#6240
Swap GIT_DIFF_LINE_(ADD|DEL)_EOFNL to match other Diffs#6240ethomson merged 1 commit intolibgit2:mainfrom
GIT_DIFF_LINE_(ADD|DEL)_EOFNL to match other Diffs#6240Conversation
Signed-off-by: xphoniex <[email protected]>
|
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 — the line 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_treeandgit_diff_from_bufferreturn different result for the same patch of:Diff:
We didn't add the LF, we deleted it!