mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-12-11 22:02:32 +01:00
Merge commit 'ba83466e1d'
This commit is contained in:
commit
f217e4a39a
11 changed files with 97 additions and 59 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue