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

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: typo in cat_commit
To:
Omar Polo <op@omarpolo.com>
Cc:
gameoftrees@openbsd.org
Date:
Wed, 20 Jul 2022 10:36:16 +0200

Download raw body.

Thread
  • Omar Polo:

    typo in cat_commit

    • Stefan Sperling:

      typo in cat_commit

On Wed, Jul 20, 2022 at 09:39:32AM +0200, Omar Polo wrote:
> otherwise it prints the author as it was the committer too :)

Free commit!

> 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);
>  
> 
>