Carlos Martín Nieto
Carlos Martín Nieto
I would expect 90% of the cases to be utf8 strings, since that's the encoding we use (assume) when we extract Git data via rugged, or to be raw binary...
This doesn't seem to be new, but the semantics of `:max` seem rather confusing. It doesn't mean "send me at most X bytes" but rather "if the process sends over...
The indexer is called to parse the packfile as it comes in from the network. As such, there is no pre-existing file to mmap. The reason the mmap windows get...
To speed up delta resolution, we need to change how they're recorded in order to allow concurrent access and processing, as we currently do the simplest thing that can work...
To keep this all more together, I found the issue (which seems to be Windows-only) for why there's so much mmap https://github.com/libgit2/libgit2/issues/2338
I just tried it on my machine with the current libgit2 version on `main` against github.com. My libssh2 version as per `apt policy libssh2-1` is `1.10.0-2`. Based on https://packages.ubuntu.com/search?suite=focal&arch=any&searchon=names&keywords=libssh2 it...
Also note https://github.blog/2021-09-01-improving-git-protocol-security-github/ where GitHub recommends libssh2 1.9 as the service tries to remove older encryption algorithms.
Looks slightly related to #3361 as far as change of refspec matching rules goes.
It is highly unlikely that either of us will work on this. Maybe @johnhaley81 is interested in this since he works on a client-side app.
In the general case, I think the best the library could do is return a `git_buf` as you still need to associate it with the allocator. However, in the general...