summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-10-30 15:00:46 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-10-30 17:12:33 (GMT)
commit103531b2065a491d2188468fcc2eac85552c9c4a (patch)
tree17dec1f5e7182a9cd9f60803a9022ecb5a5b344d
parentc91ad01f148a0cc72543649cea519be76db89115 (diff)
downloadeeshow-103531b2065a491d2188468fcc2eac85552c9c4a.zip
eeshow-103531b2065a491d2188468fcc2eac85552c9c4a.tar.gz
eeshow-103531b2065a491d2188468fcc2eac85552c9c4a.tar.bz2
file/git-hist.c (vcs_git_long_for_pango): use author information, not committer
-rw-r--r--file/git-hist.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/file/git-hist.c b/file/git-hist.c
index 24d0252..f878fc0 100644
--- a/file/git-hist.c
+++ b/file/git-hist.c
@@ -382,7 +382,6 @@ char *vcs_git_long_for_pango(struct vcs_hist *h,
char *(*formatter)(const char *fmt, ...))
{
git_buf buf = { 0 };
- time_t commit_time;
const git_signature *sig;
char *s = NULL;
unsigned i;
@@ -391,8 +390,7 @@ char *vcs_git_long_for_pango(struct vcs_hist *h,
return stralloc("Uncommitted changes");
if (git_object_short_id(&buf, (git_object *) h->commit))
goto fail;
- commit_time = git_commit_time(h->commit);
- sig = git_commit_committer(h->commit);
+ sig = git_commit_author(h->commit);
for (i = 0; i != h->n_branches; i++)
s = append(s, formatter(
@@ -401,7 +399,7 @@ char *vcs_git_long_for_pango(struct vcs_hist *h,
s = append(s, formatter(
"%s<b>%s</b> %s%s &lt;%s&gt;<small>\n%s</small>",
h->n_branches ? "\n" : "",
- buf.ptr, ctime(&commit_time), sig->name, sig->email,
+ buf.ptr, ctime(&sig->when.time), sig->name, sig->email,
git_commit_summary(h->commit)));
git_buf_free(&buf);
return s;