Commit Briefs

e45f7eba7c Christian Weisgerber

got patch: switch from fseek() to fseeko(), use unary minus while here

ok op


be33dff7fa Omar Polo

got patch: fail when reading empty hunks


6b7665acf3 Omar Polo

s/empty/done forgot in previous commit



f90b7a8ce9 Omar Polo

trailing whitespaces


4379a9aae9 Omar Polo

got patch: handle git-style rename diffs

extend the support for git-style diffs to include the "pure rename" case, i.e. when a file is renamed without any edits. ok stsp@


b28327780d Omar Polo

got-read-patch: preserve all \ lines

as a cheap optimization got-read-patch was sending only the "\ No newline at end of file" lines that follows an addition (a "+" line). To be able to reverse patches in the future got_patch needs to know about all of these lines instead. No functional changes intended. ok stsp@


9d6cabd512 Omar Polo

got patch: allow to strip path components

Move some bits from the libexec helper to the main process so we know if the patch was generated by git or not and finally document the automatic stripping of a/ and b/ prefixes added by git-diff(1). ok stsp@



b3c57ab2fb Omar Polo

got patch: handle "\ No newline at end of file"


7a30b5cb05 Omar Polo

got patch: prefer new name if not /dev/null and not a git-style diff

This fixes a common issue when for e.g. generating patches with $ diff -u foo.orig foo where 'got patch' failed because 'foo.orig' has an 'unexpected status'. prodded by naddy, ok stsp


46ebad135d Omar Polo

style


423faaa61a Omar Polo

got-read-patch: plug memory leak