diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2021-02-01 10:07:00 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-01 10:07:00 +0000 |
| commit | 02eb1711283473c1f2e8dba6005467ef8e275855 (patch) | |
| tree | b3faf9c8ee1be81b57a94317b9c11e22b0d56e94 /include/git2 | |
| parent | 2ad1525099e430827d901e52cd0dd580ce1b7a8f (diff) | |
| parent | 58d757b1d36f5744e969852a54d34990a44c6389 (diff) | |
| download | libgit2-02eb1711283473c1f2e8dba6005467ef8e275855.tar.gz | |
Merge pull request #5731 from KOLANICH-libs/owner_accessor
patch: add owner accessor
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/patch.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/git2/patch.h b/include/git2/patch.h index b177798e6..fde9659e7 100644 --- a/include/git2/patch.h +++ b/include/git2/patch.h @@ -29,6 +29,14 @@ GIT_BEGIN_DECL typedef struct git_patch git_patch; /** + * Get the repository associated with this patch. May be NULL. + * + * @param patch the patch + * @return a pointer to the repository + */ +GIT_EXTERN(git_repository *) git_patch_owner(const git_patch *patch); + +/** * Return a patch for an entry in the diff list. * * The `git_patch` is a newly created object contains the text diffs |
