diff options
author | Dave Borowitz <dborowitz@google.com> | 2010-11-04 15:08:01 -0700 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2010-11-05 03:55:14 +0200 |
commit | 88d035bd1502d507554f59d6c699b3759bc2b758 (patch) | |
tree | 7d09337fb82a54f5d67cb77cb63db38130b62fdd /src/commit.c | |
parent | f24fa0880cdaa997bb12b298d44bf54988d6cfb4 (diff) | |
download | libgit2-88d035bd1502d507554f59d6c699b3759bc2b758.tar.gz |
Update commit_time along with committer.
Diffstat (limited to 'src/commit.c')
-rw-r--r-- | src/commit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/commit.c b/src/commit.c index 1f365c927..4dbd7719a 100644 --- a/src/commit.c +++ b/src/commit.c @@ -282,6 +282,7 @@ void git_commit_set_committer(git_commit *commit, const char *name, const char * git_person__free(commit->committer); commit->committer = git_person__new(name, email, time); + commit->commit_time = time; } void git_commit_set_message(git_commit *commit, const char *message) @@ -317,5 +318,3 @@ void git_commit_add_parent(git_commit *commit, git_commit *new_parent) node->next = commit->parents; commit->parents = node; } - - |