summaryrefslogtreecommitdiff
path: root/src/signature.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2014-07-17 18:25:03 -0400
committerEdward Thomson <ethomson@microsoft.com>2014-10-26 22:59:19 -0400
commita35a9890b00b538cd0f3ef94a526c0dd2ec461bf (patch)
tree391dc91e8c3f872fe59f910fb06f422b3e6e26d7 /src/signature.c
parent443d5674fe3f2edd4cb51c7657e7ad5063275bff (diff)
downloadlibgit2-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.c11
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;
+}
+