Commit Graph

15740 Commits

Author SHA1 Message Date
Edward Thomson
c1b2b25ebc remote: add update_refs callback
Add an `update_refs` callback that includes the refspec; `update_tips`
is retained for backward compatibility.
2024-10-19 23:42:26 +01:00
Edward Thomson
6ea625cdad Merge pull request #6912 from libgit2/ethomson/ntlm
Update ntlmclient dependency
2024-10-18 23:43:20 +01:00
Edward Thomson
6c70f24d89 Update ntlmclient dependency 2024-10-18 23:24:10 +01:00
Edward Thomson
3594a54b55 Merge pull request #6911 from libgit2/ethomson/c90-2
Configurable C standard
2024-10-18 23:03:49 +01:00
Edward Thomson
d6a11073d4 cmake: document C standard options 2024-10-18 22:44:07 +01:00
Edward Thomson
4768d8a8ad ci: don't use extensions on msan build
The memory sanitizer builds are special snowflakes; let them be c90 with
extensions.
2024-10-18 22:26:57 +01:00
Edward Thomson
41a41b4f4a cmake: make C_STANDARD and C_EXTENSIONS configurable
Users can now set up cmake with -DC_STANDARD=... or -DC_EXTENSIONS=...
We default to C90 with C_EXTENSIONS=OFF, but callers can override if
they desire.
2024-10-18 22:26:57 +01:00
GravisZro
f1cac063ba Mandate C90 conformance
This PR ensures and enforces C90 conformance for all files C, including tests.

* Modify CMakeLists.txt to mandate C90 conformance (for better compiler compatibility)
* Update deps/ntlmclient/utf8.h to latest version
* Modify two tests and one header to use C comments instead of C++ comments
2024-10-18 22:26:57 +01:00
Edward Thomson
99e0d2a6e1 Merge pull request #6907 from libgit2/ethomson/blame_cmd
Introduce a blame command
2024-10-18 11:16:47 +01:00
Edward Thomson
2cfb83bccc blame: don't try to create a blame on error
When an error occurs... deal with the error, don't try to still create
hunks.
2024-10-18 10:48:32 +01:00
Edward Thomson
1925889139 cli: add a blame command 2024-10-18 10:48:32 +01:00
Edward Thomson
1ee2c33993 blame: provide line accessor
blame: introduce git_blame_line

Provide a structure that can provide the line-level information.
2024-10-18 10:02:02 +01:00
Edward Thomson
1474c892f9 cli: introduce cli_resolve_path
The git CLI takes paths as command-line inputs from the current working
directory; provide a helper method to provide a repo-relative path based
on paths specified on the command-line.
2024-10-18 10:02:02 +01:00
Edward Thomson
49402cc614 blame: add commit summary information 2024-10-18 10:02:02 +01:00
Edward Thomson
5378b80a9f blame: add final committer information
Our blame implementation tracks final _author_ but not final
_committer_. Make it so.
2024-10-18 10:02:02 +01:00
Edward Thomson
9cea29d154 blame: update API
Use `size_t` for sizes, standardize naming with the rest of the library.
2024-10-18 10:02:02 +01:00
Edward Thomson
215aafbd6d Merge pull request #6909 from John-Colvin/patch-1
typo: s/size on bytes/size in bytes/
2024-10-17 10:59:37 +01:00
John Colvin
c2d697e3ce s/size on bytes/size in bytes/ 2024-10-16 14:55:12 +01:00
Edward Thomson
a9aa21476e Merge pull request #6908 from libgit2/ethomson/readme
README updates
2024-10-11 12:13:27 +01:00
Edward Thomson
41c8c46df1 README updates 2024-10-11 11:34:24 +01:00
Edward Thomson
0da8e725f1 Merge pull request #6904 from libgit2/ethomson/hashmap
hashmap: further asserts
2024-10-07 22:01:43 +01:00
Edward Thomson
7435419f71 Merge pull request #6905 from libgit2/ethomson/zlib
zlib: update bundled zlib to v1.3.1
2024-10-07 22:01:34 +01:00
Edward Thomson
b72dfb0e73 zlib: update bundled zlib to v1.3.1 2024-10-07 21:38:30 +01:00
Edward Thomson
6d8d5de659 hashmap: further asserts
Continue to quiet down mediocre static code analysis.
2024-10-07 21:37:59 +01:00
Edward Thomson
f71f154b20 Merge pull request #6902 from libgit2/ethomson/hashmap
hashmap: asserts
2024-10-05 22:24:02 +01:00
Edward Thomson
6c547af791 hashmap: asserts
Quiet down static code analysis.
2024-10-05 12:17:05 +01:00
Edward Thomson
1db158ee38 Merge pull request #6901 from libgit2/ethomson/openssl_dynamic
Fixes for OpenSSL dynamic
2024-10-05 08:34:16 +01:00
Edward Thomson
e7db282676 openssl: dynamic loading fixes 2024-10-04 22:16:09 +01:00
Edward Thomson
a9ba0299e2 hashmap: add some asserts
Quiet down static code analysis.
2024-10-04 21:56:11 +01:00
Edward Thomson
5ead0bdfbe Merge pull request #6897 from libgit2/ethomson/hashmap
hashmap: a libgit2-idiomatic khash
2024-10-02 14:37:14 +01:00
Edward Thomson
751c68f1b6 Merge pull request #6877 from yerseg/ability_to_add_custom_x509_certs
ssl: ability to add raw X509 certs to the cert store
2024-10-02 13:09:31 +01:00
Edward Thomson
9d57a7aa8e hashmap_oid: introduce hashmap_oid
A hashmap that uses git_oid's as keys. Move the hashcode function out of
git_oid.
2024-10-02 13:07:57 +01:00
Edward Thomson
7ca51a806c util: remove now-used khash.h 2024-10-02 13:07:57 +01:00
Edward Thomson
9c1f4b4f6f oidmap: remove now-unused oidmap 2024-10-02 13:07:57 +01:00
Edward Thomson
8d81bb57d6 hashmap: remove now-unused offmap and strmap 2024-10-02 13:07:57 +01:00
Edward Thomson
8c55bbeb9e packbuilder: use hashmap for walk_objects 2024-10-02 13:07:57 +01:00
Edward Thomson
4e2ce7eb8b packbuilder: use hashmap for pobject map 2024-10-02 13:07:57 +01:00
Edward Thomson
597a67164d pack: typed hashmap for offsets instead of offmap 2024-10-02 13:07:57 +01:00
Edward Thomson
9daf45abc3 pack: use typed hashmap for index cache 2024-10-02 13:07:57 +01:00
Edward Thomson
77e359ecc4 indexer: use typed hashmap 2024-10-02 13:07:57 +01:00
Edward Thomson
5d2c56d8a5 revwalk: hashmap 2024-10-02 13:07:57 +01:00
Edward Thomson
79290ba49c odb_mempack: use a typed hashmap 2024-10-02 13:07:57 +01:00
Edward Thomson
c7294317ca merge: use type safe oid-keyed hashmaps 2024-10-02 13:07:57 +01:00
Edward Thomson
9a7d920f73 grafts: use a typed oid hashmap 2024-10-02 13:07:57 +01:00
Edward Thomson
90f1785800 describe: use a typed oid hashmap 2024-10-02 13:07:57 +01:00
Edward Thomson
f9ad579ebc commit_graph: use a well-typed oid hashmap 2024-10-02 13:07:57 +01:00
Edward Thomson
7fb641b93a cache: use a well-typed hashmap for oid mapped cache 2024-10-02 13:07:57 +01:00
Edward Thomson
b4be7d0dcd oid: introduce oid hash functions
Provide functions for `git_oid` to provide a 32 bit or 64 bit hash
value, useful for a hashmap.
2024-10-02 13:07:57 +01:00
Edward Thomson
c1ecf566fd hashmap: update index to use new hashmap 2024-10-02 13:07:57 +01:00
Edward Thomson
74c42335f7 tree: use hashmap 2024-10-02 13:07:57 +01:00