diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2014-07-17 18:25:03 -0400 |
|---|---|---|
| committer | Edward Thomson <ethomson@microsoft.com> | 2014-10-26 22:59:19 -0400 |
| commit | a35a9890b00b538cd0f3ef94a526c0dd2ec461bf (patch) | |
| tree | 391dc91e8c3f872fe59f910fb06f422b3e6e26d7 /src/signature.c | |
| parent | 443d5674fe3f2edd4cb51c7657e7ad5063275bff (diff) | |
| download | libgit2-a35a9890b00b538cd0f3ef94a526c0dd2ec461bf.tar.gz | |
Introduce git_rebase_commit
Commit the current patch of a rebase process.
Diffstat (limited to 'src/signature.c')
| -rw-r--r-- | src/signature.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/signature.c b/src/signature.c index 514b153ac..818cd300e 100644 --- a/src/signature.c +++ b/src/signature.c @@ -270,3 +270,14 @@ void git_signature__writebuf(git_buf *buf, const char *header, const git_signatu (unsigned)sig->when.time, sign, hours, mins); } +bool git_signature__equal(const git_signature *one, const git_signature *two) +{ + assert(one && two); + + return + git__strcmp(one->name, two->name) == 0 && + git__strcmp(one->email, two->email) == 0 && + one->when.time == two->when.time && + one->when.offset == two->when.offset; +} + |
