mirror of
https://git.proxmox.com/git/libgit2
synced 2025-07-04 20:06:24 +00:00
Introduce git_blame_buffer
This commit is contained in:
parent
168e9d746e
commit
edcb6ee649
@ -152,6 +152,20 @@ GIT_EXTERN(int) git_blame_file(
|
|||||||
git_blame_options *options);
|
git_blame_options *options);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get blame data for a file that has been modified.
|
||||||
|
*
|
||||||
|
* @param out pointer that will receive the results object
|
||||||
|
* @param reference output from git_blame_file for the file in question
|
||||||
|
* @param buffer the (possibly) modified contents of the file
|
||||||
|
* @return 0 on success, or an error code. (use giterr_last for information
|
||||||
|
* about the error)
|
||||||
|
*/
|
||||||
|
GIT_EXTERN(int) git_blame_buffer(
|
||||||
|
git_blame_results **out,
|
||||||
|
git_blame_results *reference,
|
||||||
|
const char *buffer);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Free memory allocated by git_blame.
|
* Free memory allocated by git_blame.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user