Edward Thomson
ee552697d5
README: update build badges and links
...
Use new-style links to the build information and badges, which link to the workflow filename, not the display name.
2024-05-16 11:18:41 +01:00
Edward Thomson
0dab9d4a57
README: add experimental builds to ci table
2024-05-15 23:11:07 +01:00
Edward Thomson
c7af393a48
Merge pull request #6815 from libgit2/ethomson/signed_comparedness
...
tree: avoid mixed signedness comparison
2024-05-13 11:29:34 +01:00
Edward Thomson
f5c6b6ab14
Merge pull request #6814 from libgit2/ethomson/alloc
...
Update git_array allocator to obey strict aliasing rules
2024-05-13 11:29:25 +01:00
Edward Thomson
9a2afb7785
Merge pull request #6813 from libgit2/ethomson/opt_alloc
...
cli: include alloca on illumos / solaris / sunos
2024-05-13 11:29:04 +01:00
Edward Thomson
0e9eeec69a
Merge pull request #6812 from libgit2/ethomson/unused-warnings
...
rand: avoid uninitialized loadavg warnings
2024-05-13 11:28:48 +01:00
Edward Thomson
5647f6ea7d
Merge pull request #6810 from libgit2/ethomson/xdiff
...
xdiff: use proper free function
2024-05-13 11:28:35 +01:00
Edward Thomson
54218b5506
array: treat git_array ptrs as void *
...
Avoid sloppy aliasing in our (re-)allocation, which is undefined
behavior. This has been problematic before and was helped by `volatile`
(see b62a6a13b2 ) but that is not
technically correct, and some compilers / architectures do not
understand that `ptr` is changing due to its aliasing.
Just make `git_array_alloc` behave like `realloc`, taking a `void *` and
returning a `void *`.
2024-05-13 10:48:56 +01:00
Edward Thomson
bb3c31f327
xdiff: use proper free function
2024-05-13 10:44:06 +01:00
Edward Thomson
2fb07fd0e1
rand: avoid uninitialized loadavg warnings
2024-05-13 10:24:33 +01:00
Edward Thomson
99ba44608f
tree: avoid mixed signedness comparison
...
Promote mode to `uint32_t` before comparing it to an `uint16_t` to avoid
mixed signed comparison warnings.
2024-05-13 10:22:44 +01:00
Edward Thomson
b1d6fd0858
cli: include alloca on illumos / solaris / sunos
2024-05-13 10:21:24 +01:00
Edward Thomson
5f796f881b
Merge pull request #6808 from qaqland/fix-demo-for-each-ref
...
examples: fix memory leak in for-each-ref.c
2024-05-13 09:58:45 +01:00
Edward Thomson
26e0bd4ca3
Merge pull request #6806 from libgit2/ethomson/fetch_opts
...
remote: drop bitfields in git_remote_fetch_options
2024-05-13 09:55:39 +01:00
Edward Thomson
8791a26716
Merge pull request #6809 from csware/fix-revparse-at-at-end
...
Revparse: Correctly accept ref with '@' at the end
2024-05-13 09:55:04 +01:00
Sven Strickroth
60f219e80b
Revparse: Correctly accept ref with '@' at the end
...
Signed-off-by: Sven Strickroth <email@cs-ware.de >
2024-05-08 17:36:18 +02:00
qaqland
322ea80231
examples: fix memory leak in for-each-ref.c
2024-05-08 11:08:26 +08:00
Edward Thomson
2d649ccd23
remote: drop bitfields in git_remote_fetch_options
...
In attempting to make a clever change that added fetch options as flags,
while keeping ABI and API compatibility, we screwed up. Bitfields in
structs are implementation-specific and are not necessarily ABI
compatible across compilers.
Make `update_fetchhead` a flags value which is weirdly named, but
that's a future problem. This removes the `report_unchanged` option from
API.
2024-05-06 15:46:21 +01:00
Edward Thomson
e5e233caed
Merge pull request #6803 from libgit2/ethomson/sha256_transport
...
transport: support sha256 oids
2024-05-01 23:00:33 +01:00
Edward Thomson
2fd37e1bfe
transport: support sha256 oids
2024-04-29 22:19:11 +01:00
Edward Thomson
6423ffbcd7
Merge pull request #6802 from libgit2/ethomson/cb_err
...
transport: provide a useful error message during cancellation
2024-04-29 12:02:08 +01:00
Edward Thomson
ffd881eb4a
transport: provide a useful error message during cancellation
...
Since 3618a2a , `git_error_last` does not return NULL when there was no
error. Adapt to this when testing for a user cancelling a callback but
not setting an error message, testing for `klass` of `GIT_ERROR_NONE`.
2024-04-29 09:44:30 +01:00
Edward Thomson
85d42ea10e
Merge pull request #6796 from ConradIrwin/no-oob
...
Bounds check for pack index read
2024-04-23 08:12:04 +01:00
Edward Thomson
b739acaa50
Merge pull request #6713 from sgallagher/llhttp
2024-04-23 08:05:54 +01:00
Edward Thomson
fb1797de63
Merge remote-tracking branch 'origin/main' into libgit2-httpparser
2024-04-23 00:09:50 +01:00
Edward Thomson
15a8d8763e
ci: make fedora a nightly build
2024-04-23 00:09:20 +01:00
Edward Thomson
64808a9a8e
ci: fixes for fedora
...
Use fedora's valgrind instead of trying to build our own; omit false
positive leaks in getaddrinfo;
2024-04-23 00:07:48 +01:00
Edward Thomson
98c4955390
http: remove legacy bundled http-parser
...
Users can still use the legacy Node.js http-parser library, but now we
bundle llhttp and prefer it.
2024-04-22 22:21:23 +01:00
Edward Thomson
d02b549dab
http: make llhttp the default
2024-04-22 22:21:23 +01:00
Edward Thomson
d396819101
http: abstract http parsing out of httpclient
...
Avoid #ifdef's in httpclient.c, and move http parsing into its own file.
2024-04-22 22:21:23 +01:00
Edward Thomson
3599de9073
http: add llhttp as a bundled dependency
...
Include llhttp as a bundled dependency with the aim to use it as our
default http parser, removing the now-unmaintained Node.js http-parser.
2024-04-22 22:21:23 +01:00
Edward Thomson
06cafdf9d8
pack: upcast to size_t for bounds checking
2024-04-19 09:58:47 +01:00
Edward Thomson
93c94446cd
Merge pull request #6792 from barracuda156/apple
...
process.c: fix environ for macOS
2024-04-19 09:46:25 +01:00
Edward Thomson
9ddf612a00
Merge pull request #6788 from libgit2/ethomson/user_agent
...
Allow more control over the user-agent
2024-04-18 21:02:59 +01:00
Edward Thomson
72d36a42b6
Merge pull request #6794 from stinb/windows-arm-build
...
cmake: remove workaround that isn't compatible with Windows on ARM
2024-04-18 21:01:40 +01:00
Conrad Irwin
6e8227ab38
Bounds check for pack index read
...
Fixes: https://github.com/libgit2/libgit2/issues/6795
Co-Authored-By: Bennet <bennetbo@gmx.de >
2024-04-15 09:51:14 -06:00
Jason Haslam
387d01c186
cmake: remove workaround that isn't compatible with Windows on ARM
2024-04-10 21:29:54 -06:00
Sergey Fedorov
4b043541ab
process.c: fix environ for macOS
2024-04-08 03:46:17 +08:00
Edward Thomson
8afdad0eb0
Merge pull request #6787 from libgit2/ethomson/docs
...
Docs meta-updates
2024-04-02 23:13:55 +01:00
Edward Thomson
cc2a01524d
docs: document git_remote_capability_t
2024-04-02 22:14:51 +01:00
Edward Thomson
6122f008c6
docs: it's _return_ not _returns_
2024-04-02 22:14:51 +01:00
Edward Thomson
6bed71e05d
docs: update includes
...
Update our headers so that they can include the necessary definitions.
Docs generators (in particular, `clang -Xclang -ast-dump`) were unable
to see the necessary definitions.
2024-04-02 22:14:47 +01:00
Edward Thomson
4839f4fbfc
http: allow users more control over user-agent
...
Users can now override the "product" portion of the user-agent (via
GIT_OPT_SET_USER_AGENT_PRODUCT). This continues to default to "git/2.0",
but users may define their own string, or may opt out of sending a
user-agent entirely (by passing an empty string). Similarly, users may
now also opt-out of sending any additional "comment" information by
setting the GIT_OPT_SET_USER_AGENT value to an empty string.
2024-03-28 10:10:50 +00:00
Edward Thomson
4d19e8c9c5
settings: pull settings out into its own file
2024-03-28 10:10:46 +00:00
Edward Thomson
4bb051adec
Merge pull request #6782 from libgit2/ethomson/ci
...
ci: give all nightly builds a unique id
2024-03-26 21:12:06 +00:00
Edward Thomson
dd79fbb5ab
ci: give all nightly builds a unique id
...
The new upload-artifact action fails on conflicting names; ensure that
we give each artifact a unique name (keyed off the id).
2024-03-26 20:56:07 +00:00
Edward Thomson
7f1a39e3b9
Merge pull request #6781 from Formkunft/fix-commit-create-from-stage
...
commit: Fix git_commit_create_from_stage without author and committer
2024-03-26 16:54:57 +00:00
Florian Pircher
34073bf2e5
commit: Fix git_commit_create_from_stage without author and committer
2024-03-24 23:24:31 +01:00
Edward Thomson
e2db98f891
Merge pull request #6773 from libgit2/ethomson/ci
...
ci: update nightly workflows
2024-03-22 10:44:36 +00:00
Edward Thomson
d74d491481
Merge pull request #6767 from libgit2/ethomson/v18
...
Release v1.8
v1.8.0
2024-03-20 20:19:37 +00:00