libgit2
libgit2 copied to clipboard
A cross-platform, linkable library implementation of Git that you can use in your application.
Got these warnings while compiling on Alpine Linux against musl libc: ``` /tmp/gitstatus/libgit2/src/refs.c: In function 'git_reference_lookup_resolved': /tmp/gitstatus/libgit2/src/refs.c:235:4: warning: 'strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] strncpy(scan_name, ref->target.symbolic, sizeof(scan_name)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
- Fixes #5 - Fixes #6 - Fixes https://github.com/romkatv/powerlevel10k/issues/2703
Is there a reason this fork isn't merged from upstream libgit2?
there are few vulnerabilities which is fixed in original libgit2 which is still present in this fork: https://github.com/libgit2/libgit2/security
Another merge on top of #7 . Dropped 942ba14778 as sortedcache switched to hashset_str in 8dc52d05ad. - Fixes #5 - Fixes #6 - Fixes https://github.com/romkatv/powerlevel10k/issues/2703
### [`a7b1d11ab`](https://github.com/romkatv/libgit2/pull/8/commits/a7b1d11ab4543b215119047efeb0355e414184b1) refs: Handle normalizing negative refspecs Upstream commit 2adb7bc3f5f6eed38938ec6b7ab4a79827ade37e. Negative refspecs were added in Git v2.29.0 which allows refspecs to be prefixed with `^`[^1]. Currently, the library is unable...