Commits
- Commit:
0ae84acc1f0a0584e4f26ccbe029c895043b3abe
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
move got_opentempfd out of got_repo_open. ok stsp@
thanks for all the help massaging this diff
- Commit:
85c34e74e98435d0ebb99360b18587411a652741
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix error case handling in print_commit_oneline(); pointed out by op@
- Commit:
d91e053539d7b792ea587fe510d514642396db55
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make got log -s show committer date
ok op@
- Commit:
4cac2b4e3f60c45b2a6550d4b15730d172eab925
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make got log -s display local reference names
ok op@
- Commit:
793b939450f25c2e96cd312e618683f2517c7058
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got log: sync match_commit from tog
So that 'got log -S' can match also the author and committer name, and
the commit ID too.
ok stsp@
- Commit:
a558dd1be5714d8e7a83f7d63180550e86ccae5c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
reuse a temporary file across commits during got log -p -S
suggested by + ok op@
- Commit:
ee0fb1ff2261d82ca1d25edbb6db0359b589779d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make it possible to match committed patches with got log -p -S pattern
ok op@
- Commit:
90e25b1fb888319a60c666995286e204ed5fe0ae
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
plug a memory leak in show_change(), line was leaked
- Commit:
c1c775ebf431921ec88711e07b197edd07e05bb5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add one-line output mode to got log with -s flag
-s for short. Moves log search to -S.
Patch by Evan Silberman
- Commit:
b72706c3d172544098fcd24fd639374694a8fce9
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move creation of tempfiles outside of lib/diff.c
ok tracey
- Commit:
571608344a37fb96f46850a1124415ab68b1a431
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
open temporary files needed for delta application in got_repo_open()
This prepares for callers of got_repo_open() that cannot afford to
open files in /tmp, such as gotwebd. In a follow-up change, we could
ask such callers to pass in the required amount of open temporary files.
One consequence is that got_repo_open() now requires the "cpath" pledge
promise. Add the "cpath" promise to affected callers and remove it once
the repository has been opened.
ok tracey
- Commit:
bad961bf76d36ad6f3472c7ad80f648091f56019
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got patch: allow to reverse a patch
add a flag to got_patch to reverse a patch before applying and the -R
flag for `got patch'.
ok stsp@
- Commit:
8618727816209ecdebf5df08c8d51556922f5398
- From:
- Omar Polo <op@omarpolo.com>
- Date:
mention -p in usage_patch
- Commit:
d7b5a0e827bb38e5c8502f0ba8d7838fedaba19b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
inline struct got_object_id in struct got_object_qid
Saves us from doing a malloc/free call for every item on the list.
ok op@
- Commit:
728ed14252dde2c08f3ceee67554ee397ac7921d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
simplify apply_unveil in cmd_patch: the worktree is not optional
- Commit:
3d1a1e4cbc91e39df83eb35eb3df3cc87719a0b5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix a double-free in an error case of cmd_checkout()
- Commit:
ffd9dda732b61657f28e1182458b60d3b27b65bf
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'got tag' unlock the work tree earlier when creating tags
The work tree was only held open in order to find its got.conf file since
this file could contain a tagger name to use. Read the tagger name earlier.
Once the tagger name is known we can close the work tree already.
- Commit:
2a261ce7acac13008537e137fb0bdb08352c9321
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'got tag -l' unlock the work tree earlier to allow other parallel commands
- Commit:
a091f71abcb1f9a1860ae417667215c2a6d00edc
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'got cat' not search for a work tree if the -r option is used
Fixes failures in our test suite if 'got tag -l | less' is used in
the work tree while cmdline tests are running.
- Commit:
67ba61612157092fbe0f8c4a02b60faf31967061
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
leave work tree in a usable state after 'got rebase' fails path-prefix checks
reported by naddy
- Commit:
392891ce58d003c4ae3d634509a29ca020f12e92
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
pass an already open commit object to the blame callback
ok op@
- Commit:
a44927cc053de352796022400f27bce4522b407c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
stop relying on commit cache for good performance of got_object_id_by_path()
Instead of internally opening and closing the same commit object over and
over again, require callers to pass an open commit object in. Avoids an
inherent dependency on the commit object cache for reasonable performance.
ok op@
- 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:
3e99fbc53402ddf1e875a7399c51253825c8c310
- From:
- Omar Polo <op@omarpolo.com>
- Date:
plug a memory leak in list_refs(), ok stsp@
- 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@