Commits
- Commit:
3f3a6472f94a10862046605b5a11129a4f97c33a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
mention that 'got patch' can read diffs produced by Git, to avoid any doubt
- Commit:
6863cbf96527f4b60a3fec65aa04808cbdc0b39e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix pack progress object counter for loose objects
Move pack progres object accounting to a single place. This makes
it easier to account for the case were only loose objects are packed.
A wrong amount of objects was reported before when packing loose ones.
- Commit:
c4e796b22e894d9f1b17844f6b2f05acadf519aa
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
in pack progress output, remove excluded objects from 'found' objects counter
- Commit:
cdeb891a2479c24d74198d39285be4c75c366c3f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix a bug where 'gotadmin pack' packed too many objects unless -a was used
- 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@