Commits
- Commit:
6435d2a6d2c84c4875a0c6f641b06d7cd1796a0c
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
sys/param.h is not needed
- Commit:
a16d97bdc65b49050d622450d50642fa98eb3cc1
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove ancestry sanity checks from 'got cherrypick' and 'got backout'
While these checks might catch usage mistakes the performance overhead
of scanning the entire history of the current branch is not worth it.
Measurements provided by naddy, cherrypicking 5 commits of OpenBSD's
src repository in usr.bin/rsync:
Before: 5m50.33s real 4m02.36s user 2m04.41s system
After: 1m04.92s real 0m28.24s user 0m36.54s system
Further performance improvements could be needed but this is a first step.
- Commit:
eac1df479eff0a068548f94b188529f0249fd9be
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'got send' heed the branch {} options in got.conf(5); they were ignored
ok naddy
- Commit:
6480c871c8f9ffdce90c10e7a7313e1187de019a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
provide separate send {} and fetch {} configuration blocks in got.conf
Feature requested by naddy.
ok naddy, who also suggested some tweaks that will arrive shortly
- Commit:
e385fc421f331989f2e6518465e5ead42e5a0618
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use gmtime_r(3) instead of localtime_r(3) to display time in UTC as intended
Problem noticed by naddy due to failing regress tests at midnight, and then
analyzed with additional help from millert.
ok naddy
- Commit:
27b75514d9b1c8e9f188ef9c483760647a8c1b72
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
do not send a pack file when 'got send' is only deleting branches
The git protocol spec says the client MUST NOT send a pack file
if the only command used is 'delete'.
Fixes 'got send -d' against Github's server which closed the session
upon receiving the empty pack file we sent. This problem wasn't caught
by regression tests since git-daemon does accept an empty pack file.
Problem reported by jrick.
- Commit:
2f1457c6ccfe722888511926c09af843da3bee0d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
allow deletion of refs/remotes/ branches with got branch -d
Also, make requirements for branch name arguments more flexible.
Absolute reference names are now accepted.
ok naddy@
- Commit:
f8a36e221091eb68b439ebe4eb07a5d03b335c28
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add 'got send' command for sending changes to remote repositories
Known to work against git-daemon and github Git server implementations.
Tests by abieber, naddy, jrick, and myself.
Man page additions reviewed by Lucas.
- Commit:
aa8b5dd032c8cba930e5be67a90069a95e0001b8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix a use-after-free in get_changed_paths() in got and tog
Once the parent commit is closed the tree_id1 pointer is no longer valid,
but the pointer was still being used. Make a deep copy to fix this issue.
- Commit:
161728eb26bf63ad53f11367358ea6190bad8968
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add 'got fetch -X' option for deleting references created by 'got fetch'
- Commit:
da630daa54557a42066707f18f070393197a0243
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make got_ref_delete() report symbolic references as intended
- Commit:
90830082630cd5bcd64ab03af3abeb4c4998d1f9
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
in delete_ref(), only print progress output after deletion has succeeded
- Commit:
f9d54ee65594d2f6180e3844e2e9f6dd3179ee3e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
align messages printed by 'got fetch -d' with 'got ref -d' and -X options
- Commit:
993f033b6f1d781a4ba7970fec46915d08e53502
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'got ref -d' print reference name and value like the new -X options do
- Commit:
643b85bcb48e24fd2ca96d415d8e61e1ceef9aad
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
new -X option for removing backups created by got rebase and got histedit
ok semarie
- Commit:
ff56836b1637f806bb308057ef9bd6d90b725568
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
Make 'got add' always require the -I option in order to add ignored files.
- Commit:
e67867107a97eae4801a85636493efb4239a61cd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
mention 'gotadmin cleanup' wherever Git's garbage collector is mentioned
- Commit:
dbdddfee1482b50ca8c4a0be06e4fec6a59fb9f4
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
switch from SIMPLEQ to equivalent STAILQ macros
The singly-linked tail queue macros were added to OpenBSD 6.9 and
are more widely available on other systems.
ok stsp
- Commit:
f6343036aa4d7e3805a44832b566b531271c1c6d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
new -I option for 'got status' to show files which match an ignore pattern
- Commit:
1d0f405485b02cc4480ea188879e4122e0ea32bd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
check for close(2) error in got_repo_close() and propagate errors up
ok tracey
- Commit:
1a1242a9a15f34878343aebfb28a71e0c5d9b904
- From:
- Klemens Nanni <kn@openbsd.org>
- Date:
diff: reduce duplicate code
Condense error checking to reduce a future diff moving those lines around;
this pattern is already used in other parts of the tree.
fine stsp
ok tracey
- Commit:
9e822917b02cb36e8dd86a73a51ddfd57baa6c25
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
rebase/histedit -l: error out if no backups for the requested branch exist
- Commit:
e3199de8d492801af7a1268d0bd0e8339074a9cd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix strftime return value check; found by jrick
- Commit:
e600f1246e15fff13251ba9d299d74a24ae579c2
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
ensure that old commits remain referenced after rebase and histedit
Create automatic "backup" references which ensure that objects from
the pre-rebase or pre-histedit state remain in the repository.
A new -l option for 'got rebase' and 'got histedit' lists old commits.
This makes it easier to recover from botched rebase or histedit operations.
Removal of such objects currently requires got ref -d and git-gc.
This will be made more convenient in the future.
testing and ok jrick
- Commit:
ec6d1a368f4f81cda70f8517eb0dec5028b847b8
- From:
- Josh Rickmar <jrick@companyzero.com>
- Date:
Fix strftime(3) short buffer checks
strftime(3) returns 0 if the buffer was too short to write the
complete string (including NUL) and will never return more than
maxsize-1.
ok stsp