diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2021-05-30 11:35:40 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2021-05-30 11:35:40 +0300 |
commit | f217e4a39a284f6db7be7a4cfde8647085f97865 (patch) | |
tree | 112ee2c9ed6b2c572665e6cb6c872c977a5a9455 /gitstatus/src/git.h | |
parent | 77fa0e6dcc56d71590967714f9e76bbf2c9ecc17 (diff) | |
parent | ba83466e1da75d9260ebbb145215d9c46d6eadf6 (diff) |
Merge commit 'ba83466e1da75d9260ebbb145215d9c46d6eadf6'
Diffstat (limited to 'gitstatus/src/git.h')
-rw-r--r-- | gitstatus/src/git.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gitstatus/src/git.h b/gitstatus/src/git.h index 7e5a6f9d..b85f09f7 100644 --- a/gitstatus/src/git.h +++ b/gitstatus/src/git.h @@ -48,6 +48,15 @@ git_reference* Head(git_repository* repo); // Returns the name of the local branch, or an empty string. const char* LocalBranchName(const git_reference* ref); +struct CommitMessage { + // Can be empty, meaning "UTF-8". + std::string encoding; + // The first paragraph of the commit's message as a one-liner. + std::string summary; +}; + +CommitMessage GetCommitMessage(git_repository* repo, const git_oid& id); + struct Remote { // Tip of the remote branch. git_reference* ref; |