Edward Thomson
a24a8479a9
cli: add ssh key handling to clone
2024-12-12 14:14:20 +00:00
Edward Thomson
daa343c919
console: tty read password handling
...
Provide a mechanism to read password from the tty, using whatever system
mechanism(s) are available, where possible.
2024-12-12 14:14:05 +00:00
Edward Thomson
f0b2962581
util: add homedir finding functionality
...
We don't have a general-purpose utility API to find the home directory.
Make it so.
2024-12-12 14:10:51 +00:00
Edward Thomson
c1ee11c262
str: provide a zero mechanism
...
We provide `git__memzero` but make a simple helper for `git_str_zero`
that does the same.
2024-12-12 14:02:14 +00:00
Edward Thomson
6821bde736
Merge pull request #6940 from libgit2/ethomson/win32
...
Make `GIT_WIN32` an internal declaration
2024-12-10 07:57:49 +00:00
Edward Thomson
455ce40994
Make GIT_WIN32 an internal declaration
...
The `GIT_WIN32` macro should only be used internally; keep it as such.
2024-12-09 23:36:34 +00:00
Edward Thomson
f54d4601ce
odb: fix mempack cast
2024-12-09 23:36:34 +00:00
Edward Thomson
4282cbd6d8
Merge remote-tracking branch 'main' into mempack_empty
2024-12-09 22:38:29 +00:00
Edward Thomson
4bb69b0827
odb_mempack: use an out param
2024-12-09 22:36:10 +00:00
Edward Thomson
2b74d4be1a
Merge pull request #6955 from libgit2/ethomson/docs
...
Documentation: update refdb_backend docs
2024-12-09 22:17:45 +00:00
Edward Thomson
88fee7af56
Documentation: update refdb_backend docs
...
Parameters are documented by `@param`, not `@arg`
2024-12-09 21:52:44 +00:00
Edward Thomson
ce01bb30fc
Merge pull request #6954 from libgit2/ethomson/docs
...
Documentation: don't resort versions
2024-12-09 17:28:56 +00:00
Edward Thomson
8ae0a22bf9
Documentation: don't resort versions
...
Array.sort() mutates the array _and_ returns it; don't mutate the
version array.
2024-12-09 17:02:37 +00:00
Edward Thomson
cd8f2730f1
Merge pull request #6953 from libgit2/ethomson/docs-search
...
Add search functionality to our docs generator
2024-12-09 13:13:15 +00:00
Edward Thomson
5efc00612c
Generate search page in documentation generation
2024-12-09 12:39:21 +00:00
Edward Thomson
6297b6195c
Add search capabilities to docs
...
Include "minisearch" which is a straightforward client-side search tool;
and a script to generate the search index for minisearch for each
version of libgit2.
2024-12-09 12:39:21 +00:00
Edward Thomson
1da67ef096
Allow documentation (re)generation in CI build
...
Provide a mechanism to allow the documentation to be force rebuilt.
2024-12-09 12:39:21 +00:00
Edward Thomson
c86842f0a5
Merge pull request #6938 from mathworks/lrm29-ssh-hostkey-check
...
ssh: Include rsa-sha2-256 and rsa-sha2-512 in the list of hostkey types
2024-11-26 22:32:07 +00:00
Edward Thomson
b8ad17faf5
Merge pull request #6949 from libgit2/ethomson/docs
...
Improve documentation and validate during CI
2024-11-26 22:14:51 +00:00
Edward Thomson
338ceb93b6
Improve documentation
2024-11-26 21:44:09 +00:00
Edward Thomson
5353a2cc20
reflog: remove unused sys functions
...
The `git_reflog_entry__alloc` function is not actually defined, nor
used. Remove references to it in the headers. It is not clear why the
corresponding `__free` is, or should be, exported. Make it internal to
the library.
2024-11-26 21:22:10 +00:00
Edward Thomson
8e516778ce
Add CI step to validate documentation changes
...
Run our documentation generator in "validate only" mode to ensure that
new changes coming in to the repository have documented our changes
fully.
2024-11-26 21:22:10 +00:00
Edward Thomson
0bd5e479b2
Introduce a "validate only" mode for docs generation
...
The API documentation generation is useful (in `--strict` mode) to
determine whether all our APIs have sufficient documentation. Add a
`--validate-only` mode that will run the validation without emitting the
API JSON. This is useful for ensuring that the documentation is
complete.
2024-11-26 21:22:10 +00:00
Edward Thomson
e74b9c64a1
Merge pull request #6948 from libgit2/ethomson/docs-ci
...
Update documentation generation workflow
2024-11-26 20:24:01 +00:00
Edward Thomson
9321800612
Update documentation generation workflow
...
Ensure that workflows where the main branch exists (eg, anything except
PR workflows) don't try to recreate the main branch. Add a concurrency
token so that we don't have conflicts generating documentation.
2024-11-26 20:00:15 +00:00
Edward Thomson
07c77d497b
Merge pull request #6945 from libgit2/ethomson/docs-ci
...
Include documentation generator
2024-11-25 23:00:49 +00:00
Edward Thomson
89cc5ef8e8
Include documentation generator
...
libgit2 has a new documentation generator that generates API schema from
our headers, then produces reference documentation that is included into
the website directly.
2024-11-25 23:00:07 +00:00
Edward Thomson
0a6051c624
Merge pull request #6927 from Caleb-T-Owens/merge-base-many-docs
...
Update documentation of `merge_base_many`
2024-11-24 22:30:22 +00:00
Laurence McGlashan
728e63f092
ssh: Include rsa-sha2-256 and rsa-sha2-512 in the list of preferred hostkey types
2024-11-15 09:30:09 +00:00
Edward Thomson
c6111ec06c
Merge pull request #6929 from lrm29/util_win32_rmdir_access_denied
...
util/win32: Continue if access is denied when deleting a folder.
2024-10-29 15:54:07 -04:00
Edward Thomson
b363ea4b9e
Merge pull request #6932 from ajacoutot/openbsd-realpath
2024-10-27 10:40:33 +00:00
Antoine Jacoutot
d1f1e17404
realpath: unbreak build on OpenBSD
2024-10-27 09:47:31 +01:00
Laurence McGlashan
57ae4b11b6
util/win32: Continue if access is denied when deleting a folder.
2024-10-25 20:29:55 +01:00
Caleb Owens
d2f5ce220c
Update documentation of merge_base_many
2024-10-23 19:10:39 +01:00
Edward Thomson
a6ee48d4e3
Merge pull request #6926 from libgit2/ethomson/ci
...
ci: port latest fixes to nightlies
2024-10-23 16:18:04 +01:00
Edward Thomson
73ac58fb72
ci: port latest fixes to nightlies
...
We've made some changes to our CI builds; move them to nightlies.
2024-10-23 13:42:10 +01:00
Edward Thomson
8691f1ee16
Merge pull request #6925 from libgit2/ethomson/ossf_best_practices
...
readme: add OpenSSF best practices badge
2024-10-23 10:31:47 +01:00
Edward Thomson
95149d2c77
readme: add OpenSSF best practices badge
2024-10-23 10:30:20 +01:00
Edward Thomson
e3467ddb9d
Merge pull request #6924 from libgit2/ethomson/cmake_deps
...
Improve dependency selection in CMake
2024-10-22 14:53:17 +01:00
Vladyslav Yeremeichuk
b190162f3e
Add the ability to get the number of objects in mempack
...
Implement git_mempack_object_count, which returns the number of
objects in mempack and -1 on error.
2024-10-22 13:58:10 +03:00
Edward Thomson
95f47a3458
ci: update noble build
...
Ubuntu noble clang is now `clang-18`; update that, and update valgrind
to v3.23.0 so that clang compiles it properly.
2024-10-22 11:45:58 +01:00
Edward Thomson
13a326f4c1
ci: build and test with system http-parser
2024-10-22 11:45:58 +01:00
Edward Thomson
22ee5a59a2
docs: update README for dependency selection
2024-10-22 11:45:58 +01:00
Edward Thomson
d37d6a9f03
cmake: better document dependency options
2024-10-22 11:45:58 +01:00
Edward Thomson
e536b2c50c
cmake: enforce USE_SHA1 and USE_SHA256 validity
2024-10-22 11:45:58 +01:00
Edward Thomson
d1d65787b4
cmake: enforce USE_HTTPS validity
2024-10-22 11:45:58 +01:00
Edward Thomson
2125e3c64d
cmake: enforce USE_SSH validity
...
Validate the USE_SSH option fits into our valid options; don't
assume a default.
2024-10-22 11:13:43 +01:00
Edward Thomson
0c675b8c84
cmake: enforce USE_HTTP_PARSER validity
...
When `-DUSE_HTTP_PARSER=...` is specified, ensure that the specified
HTTP Parser is valid, do not fallback to builtin.
Restore `-DUSE_HTTP_PARSER=system` for backcompatibility.
2024-10-22 10:07:12 +01:00
Edward Thomson
533ec839bd
Merge pull request #6920 from libgit2/ethomson/blame_benchmarks
...
Add benchmarks for blame
2024-10-21 22:22:41 +01:00
Vladyslav Yeremeichuk
d1be60bbe8
Add the ability to check if a mempack is empty
...
Implement git_mempack_empty, which returns 1 if the mempack is empty
and 0 otherwise.
2024-10-21 22:42:56 +03:00