Commits
- Commit:
8fdee7bf59a9dd9448ca69b333c468f8c8a7b7081a59bc04fefc0860e9fd655e- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
stop sending the hash algorithm in every instance of got_imsg_tree_entry
- Commit:
d735340e74df3af82f7acd745d0145d7dd5e19b7a8468c3abf9a03a5488b16da- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
pass repository hash algorithm to libexec helpers on the command line
For now, this is a purely mechanical non-functional change which ensures
that the main process's idea of the hash algorithm is known to all helpers.
This will allow us to reduce overhead by not having to send the hash algorithm
along via a struct got_object_id in imsg buffers. Instead we could now send
raw SHA1 or SHA256 hashes in messages since the hash algorithm is now known
by all processes before messages are exchanged.
- Commit:
8b548f3204aa9834989a33553110d2ec2a67191856812c836b5e0380f84839e8- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
The 'done' flag of got_privsep_recv_object_idlist() can now be an internal flag.
- Commit:
4174659e52427b7735c85d6561739b4e4323ad3c5594f45d131e6399d9194c3a- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make got_privsep_recv_object_idlist() loop internally to finish in one call
- Commit:
17e46db594a295989340e4610fa50e8c075e2254881566a724a42d5ebc8f4c21- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
do not ask got-read-pack to paint commits which are known keeps or drops
Avoids a long loop observed in gotadmin cleanup with enumeration offloaded
to got-read-pack.
- Commit:
808577a26fca1363896c388b85619dfdae201cc94190fa5fc1da03e48c8631e2- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove loaded commits counter from gotadmin cleanup progress
This counter was now always zero since the looping code which was raising
this counter has been removed.
- Commit:
828ad4330c114d7c18c2d02c0f18675aeff78cbfc59578675fa48fbd79161e7c- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
speed up gotadmin cleanup object enumeration
The gotadmin cleanup main process was enumerating objects one-by-one,
before creating a pack file, by opening every object in the repository
with a round-trip to libexec helpers like got-read-pack, got-read-blob, etc.
This enumeration loop was a remnant of an early version of gotadmin cleanup
which only supported cleaning up loose objects. We can remove this loop, and
rely on the pack file creation code instead where we benefit from offloading
of object enumeration to got-read-pack with much improved speed.
As a side-effect, fix some issues where some objects where not added to
generated pack files: directly referenced trees and blobs, and tags which
are only referenced via other tags. These issues were uncovered by the
regression test suite of gotadmin cleanup.
- Commit:
1ba8f4363f62dd04b504e3d42107f0cad7807f2c2e33090f619752615ceaaaf1- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
stop passing seed around where not needed
- Commit:
cd09e882304a191d841c7e06a5270322e38507bae5c40735890cb7695f4dc965- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
speed up object enumeration when offloaded to got-read-pack
Previously, got-read-pack was using standard tree object imsg data structures
when reporting enumrated tree objects which include information that is not
needed when enumerating objects.
For example, tree paths passed back from got-read-pack were run through a
hash function by the main process and never used for anything else.
It is faster to pass the required 4 byte hash directly instead of passing
the full path. Reduce such overhead as much as possible with a dedicated
message structure.
My test case was running just the enumeration phase on a git.git repo which
contains commit history up to Git's 1c00d2d8392f603a6263f11f1a50fde96ae5475e
In this debug build, 'gotadmin pack' exits with "feature not implemented"
as soon as object enumeration is done (a change not part of this commit).
Before:
$ time gotadmin pack -a master
80846 commits colored; 399225 objects found; 160376 trees scanned
gotadmin: feature not implemented
1m59.86s real 2m11.57s user 0m09.13s system
After:
$ time gotadmin pack -a master
80846 commits colored; 399225 objects found; 160376 trees scanned
gotadmin: feature not implemented
1m29.78s real 1m39.55s user 0m06.81s system
- Commit:
1365c7b749c6f35bdb2fe998f0fbf2f4764ad2a88357beacb6b856a846d37e15- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
bump version number
- Commit:
73d2837a6bfb57d1172c4e8e32eba016dfe9ab5117f8e295c08cfd73036bee42- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
CHANGES for 0.131
- Commit:
56966c706460ddc5f34b075b9ae42cb08cfbb97373a799e65d5111482f5d9fe0- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
sync dist file list
- Commit:
0fd3aeccd5d6b2b55130a24c844c04d9f793d77e2b77c754685574cb058aba7a- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
gotd user name is now passed via -U so we can avoid getpwnam() during reload
- Commit:
cfe15c641560134cf0cce992d489842de99f6f9ade17e71309b9891a0312e4fa- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
reduce differences to -portable gotd.c
- Commit:
3b135bab5adc6aaaa9911f0198c31904e748863c936ce978c7c7b08fb39e707d- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix a wrong bounds check in recv_tree_entries()
- Commit:
8d30135ce373e6be94329888891b111c5a2fd4cbe48a1c36ff675d13d0dec19f- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove a redundant memcpy call in recv_tree_entries()
- Commit:
5d42d6ba704c3fb69f59c0b1f486ebaa6a40cad3baaa50b40331a5cfd5f0a0ac- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
prevent branches in protected branch namespaces from being rewound
Found by Cas Hariri
- Commit:
eff4b972377331c3faf693c81c0b90e0aa8fe60664709c4e3697d427e51a0232- From:
- Omar Polo <op@omarpolo.com>
- Date:
sync files from diff.git 5d8f044ef31781fd2b1488a2394b9be344c53f7a398d6025cd7fad7b1f42549e
always print a tab after the file name
the way patch extracts the filename from the '---' and '+++' lines
(and also Index: etc, ...) is by breaking at the first white space.
If there is a tab though, patch will extract everything up to that
tab, including whitespaces. This is how it's possible to patch
file with whitespaces in them.
It's not possible to patch file with tabs or newlines in their name
though, unfortunately.
ok stsp on the code; regress fixed afterwards.
- Commit:
a0c556f159f44e9a0b012bc912aa5c47f405510a5a2528f57dcad9d8b9dcc9ae- From:
- Omar Polo <op@omarpolo.com>
- Date:
regress/cmdline: fix testroot for diff_dir_to_file
- Commit:
dab6752493ea36467c9018db975ebc9f64188cd3dd64e497ccfb0c2460db4358- From:
- Omar Polo <op@omarpolo.com>
- Date:
regress/cmdline: add a patch test for a file name with whitespaces in it
it's already passing, but make sure we won't add regressions.
- Commit:
fe66becbbe242300f7a2a5b9233dac96584839f004b922e11e6697ce705ed37f- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a TODO item for got clone/fetch
- Commit:
f93156dabe731478eb510f3febd2cd6ef3af9ac3113810b23b53cedfbb0fd226- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use got_worktree_open_shared() in gotadmin
- Commit:
90dea9c373b3b27dae2b2b519f5a2685752509b86922bdb248cdba245ffdaa70- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
tog never modifies the work tree so make it use got_worktree_open_shared()
- Commit:
36db96a6957014002a6b8e2ab2e26868eff8ec6cb4b46718b8b10eb4533e8211- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
this parameter specifies a locking strategy so rename it accordingly
- Commit:
e88d208e6f46e0ecdb19a28cdb55a09983bee0da091069d56e3be6d030bae5c7- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
rename the function which finds a work tree at or above the given path
