Commits
- Commit:
e38d4cdede4142c7bae75cc884f5ce57dad297af
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
subordinate clauses preceding the main clause are offset by a comma
- Commit:
0ae61b79f6344b7913b8daf346b41b4e3fe8211a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix potential NULL deref in error path of got_object_idset_remove()
- 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:
f134ecfdc329a401e2e93407cce94733515f16fb
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
const-ify string table
- Commit:
78f5ac2436c8d17d1dd687d69e51354707275988
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move got_patch file status checking in worktree.c
check_file_status used got_worktree_status to check if the file was in
an allowed state, but it's wrong since the callback is not invoked on
unchanged files.
While here also fix a relate bug: unlink(newpath) is in the wrong spot
and ends up removing files even when it shouldn't, so move it early in
the got_worktree_schedule_* error handling.
Finally, update the appropriate test case. It was passing before
because got_worktree_schedule_add returned GOT_ERR_FILE_STATUS, not
because check_file_status failed.
ok stsp@
- Commit:
bfc73a473bd3dbde973c26a5580d74441b7edfb6
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
explicitly include <unistd.h> for close(2)
- Commit:
70cc983209a406b57dc37c4515e1cb9a038e0f2c
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
move got_errors[] table into a single compilation unit (error.c)
ok stsp
- Commit:
39d5d1d2ed506dd6463430eb1311f4d96a66e6ae
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
rm unused vars
- Commit:
d58ddaf3fc10239711ae7a88664e3a100567ba3c
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
const-ify tables
ok thomas_adam millert
- Commit:
46ebad135d9dc52eb84d6985393298465fa7b3ff
- From:
- Omar Polo <op@omarpolo.com>
- Date:
style
- Commit:
60aa1fa0d1bdadc23596e5d614d184525b17935c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
augment patch progress callback with hunks info; recover from errors
Augment got_patch_progress_cb by providing the hunks that were applied
with offset (or that failed) and the recoverable error encountered
during the operation (bad status, missing file, ...)
got_patch now proceeds when a file fails to be patched and exits with
GOT_ERR_PATCH_FAILED if no other errors are encountered.
While here, also add a test for the 'hunk applied with offset' case and
shrink test_patch_dont_apply and illegal_status by taking advantage that
'got patch' doesn't stop at the first error. (And add some other cases
to illegal_status too.)
discussed with and ok stsp@
- Commit:
95d683408adee5188de396567e8e9746b703d7dd
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got patch: create missing directories when adding files
ok stsp@
- Commit:
2be5e1a234aeec2c4e8d6b84f0405034ed8664fa
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got patch: keep permissions after patching a file
ok stsp@
- Commit:
b22138f5dbdf02a4800b44caa215bfa102ee321b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
introduce got_patch_progress_cb
This introduce a proper got_patch specific progress callback that is
invoked after processing a patch. It also drops the hackish printf in
the modified case and takes `nop' out of the struct got_patch.
ok stsp
- Commit:
b8af7c0693fbaccaecf7b904aaf237066269f222
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
print additional progress information while packing
ok op@
- Commit:
c560c1f52d2adb8966e2f783ed7d3f0b37117df9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
don't `goto done' if calloc fails
otherwise we call got_repo_close with repo being NULL and segfault
there.
ok stsp
- Commit:
9b576444ae8786f3cc494c57cb8e7a64b74970db
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
cache a list of known pack index files when the repository is opened
Avoids overhead due to readdir calls while searching a pack index.
ok op@
- Commit:
899fcfdf4534887848844329dae7327bd810a432
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add a dry-run/nop mode for got patch
with lots of help from stsp for the manpage bits!
- Commit:
986288a659290f72e774dcf0cb43ba76b2c23c72
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix weird paragraph breaks in 'got patch' man page section
- Commit:
3e72b288de325b062a896dd092cc4a7625f76432
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
more 'got patch' man page tweaks
- Commit:
750a309349d99384187d53c0436ec4b404c1a112
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
some man page tweaks for 'got patch'
ok op@
- Commit:
5b67f96efbfbf2e5a3f75f6ab91e45dd3013c77f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got patch: require exact match when removing files
- Commit:
dd6c3779b6533ba060e07dc68fdaf6b1e0e49d30
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve `got patch' section of the manpage
Simplify some phrasing, explain what preconditions `got patch' has and
what happens to the work tree when an error occurs.
- Commit:
dbda770b9c10968769697cd1a7d6ffff596dd30b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
check file status before applying the patch
Don't allow `got patch' to delete files that are not known, or add files
that are already known and to edit files that are known, not obstructed
and without conflicts.
- Commit:
a84c0d302fea1f440dfc5b1e70dac59cc50e31f9
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix 'got status' with an obstructed file given as argument; found by Omar