"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Omar Polo <op@omarpolo.com>
Subject:
typo in cat_commit
To:
gameoftrees@openbsd.org
Date:
Wed, 20 Jul 2022 09:39:32 +0200

Download raw body.

Thread
  • Omar Polo:

    typo in cat_commit

otherwise it prints the author as it was the committer too :)

diff /home/op/w/got
commit - 996397457f6d60da8b760b7e5918e7e96bf9b83c
path + /home/op/w/got
blob - 55dd1b5cc6558350a57083e74ac4acd9f717e72d
file + got/got.c
--- got/got.c
+++ got/got.c
@@ -12631,7 +12631,7 @@ cat_commit(struct got_object_id *id, struct got_reposi
 	got_date_format_gmtoff(gmtoff, sizeof(gmtoff),
 	    got_object_commit_get_committer_gmtoff(commit));
 	fprintf(outfile, "%s%s %lld %s\n", GOT_COMMIT_LABEL_COMMITTER,
-	    got_object_commit_get_author(commit),
+	    got_object_commit_get_committer(commit),
 	    (long long)got_object_commit_get_committer_time(commit),
 	    gmtoff);