Commits
- Commit:
35095610b1bb11a6c722f6d42f6609bd308531a8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got patch: use ints for line offsets instead of longs
ints have the advantage that their size is more likely to be the same
across the various architecture supported by OpenBSD, thus introducing
less possible differences.
INT_MAX is still (at least) a few order of magnitudes higher than the
patches we dealt with (even abnormal ones.)
suggested by stsp@
- Commit:
e45f7eba7c3fe929b6bd5852f390301aeace98aa
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
got patch: switch from fseek() to fseeko(), use unary minus while here
ok op
- Commit:
be33dff7fa389c620154dc06efbeae69bd002950
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got patch: fail when reading empty hunks
- Commit:
6b7665acf3ac9dd7d0c30372df5a4fa09b1b47fa
- From:
- Omar Polo <op@omarpolo.com>
- Date:
s/empty/done forgot in previous commit
- Commit:
d75b95736e173f91a380719d1d974cf326335c06
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got-read-patch: rename `ok' variable and simplify the parsing a bit
- Commit:
f90b7a8ce92037f39d85e51dc6439e1aee606a5a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
trailing whitespaces
- Commit:
4379a9aae9e70b9b2beaa7c7b31c4033b302069b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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@
- Commit:
b28327780dc2e32f03051c7d18d57db2e27e2de6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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@
- Commit:
9d6cabd51222f7506db617ee8a7b282823dde999
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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@
- Commit:
e260f8ae2c54344af5cd0213dc0aafe6e2ff8721
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fgetc() returns int, not char; fixes -Werror build on armv7
- Commit:
b3c57ab2fb7857f055b840d29c425370effc8f9c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got patch: handle "\ No newline at end of file"
- Commit:
7a30b5cb05817b97fcb91183049b629a948e3ba6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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
- Commit:
46ebad135d9dc52eb84d6985393298465fa7b3ff
- From:
- Omar Polo <op@omarpolo.com>
- Date:
style
- Commit:
423faaa61a622c043f5a2918f3a9183ae02408d4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got-read-patch: plug memory leak
- Commit:
e9ce266e31923cc339954b331d273d9bba543f6f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add `got patch' command for applying unified diffs