mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 01:45:11 +00:00
[Blob] Update documentation for is_binary.
filter.h tells me that we check the first 8000 bytes.
This commit is contained in:
parent
5d91bea22a
commit
fda73bc5fd
@ -210,7 +210,7 @@ GIT_EXTERN(int) git_blob_create_frombuffer(
|
|||||||
*
|
*
|
||||||
* The heuristic used to guess if a file is binary is taken from core git:
|
* The heuristic used to guess if a file is binary is taken from core git:
|
||||||
* Searching for NUL bytes and looking for a reasonable ratio of printable
|
* Searching for NUL bytes and looking for a reasonable ratio of printable
|
||||||
* to non-printable characters among the first 4000 bytes.
|
* to non-printable characters among the first 8000 bytes.
|
||||||
*
|
*
|
||||||
* @param blob The blob which content should be analyzed
|
* @param blob The blob which content should be analyzed
|
||||||
* @return 1 if the content of the blob is detected
|
* @return 1 if the content of the blob is detected
|
||||||
|
Loading…
Reference in New Issue
Block a user