| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Add a new 'print_index' flag to let the caller decide whether or not 'index <oid>..<oid>' should be printed. Since patch id needs not to have index when hashing a patch, it will be useful soon. Signed-off-by: Gregory Herrero <gregory.herrero@oracle.com>
Git is generating patch-id using a stripped down version of a patch where hunk header and index information are not present. Signed-off-by: Gregory Herrero <gregory.herrero@oracle.com>
When not shown binary data is added or removed in a patch, patch parser is currently returning 'error -1 - corrupt git binary header at line 4'. Fix it by correctly handling case where binary data is added/removed. Signed-off-by: Gregory Herrero <gregory.herrero@oracle.com>
There was a problem hiding this comment.
Thanks a lot for your pull request! I like the changes quite a lot, they make the code simpler while still extending our support for patch IDs. I hate to say that my only issue is a stylistic one, so please forgive me, but please remove the braces around function invocations as they do not match our style. Other than that there was a needless call to git_buf_sanitize that I'd ask you to remove.
All in all, very well done and I'm happy to merge as soon as these two small issues are fixed!
Sorry, something went wrong.
Current implementation of patchid is not computing a correct patchid when given a patch where, for example, a new file is added or removed. Some more corner cases need to be handled to have same behavior as git patch-id command. Add some more tests to cover those corner cases. Signed-off-by: Gregory Herrero <gregory.herrero@oracle.com>
|
Thanks for your nice feedback, happy to help :) |
Sorry, something went wrong.
|
Thanks a lot for this well-crafted pull request, @herrerog! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Hi,
I noticed that git_diff_patchid wasn't returning a correct hash in some cases.
So I fixed those and added some tests for it.
Please let me know what you think.
Thanks!