commit 9119855459d45307656bf70c7302295c55be7bae from: Stefan Sperling via: Thomas Adam date: Thu Jun 23 14:09:35 2022 UTC wrap overlong lines in tog.c commit - 923086fdfc886d17bc06195d87e3fd344c1f0474 commit + 9119855459d45307656bf70c7302295c55be7bae blob - 2ab36ac746be3a0f185c5eb2100d91298efc0f1b blob + 20e01321ddfead610c8c28799fe3581e079feed6 --- tog/tog.c +++ tog/tog.c @@ -1809,8 +1809,8 @@ draw_commits(struct tog_view *view) } if (s->in_repo_path && strcmp(s->in_repo_path, "/") != 0) { - if (asprintf(&header, "commit %s %s%s", - id_str ? id_str : "........................................", + if (asprintf(&header, "commit %s %s%s", id_str ? id_str : + "........................................", s->in_repo_path, ncommits_str) == -1) { err = got_error_from_errno("asprintf"); header = NULL; @@ -4267,7 +4267,8 @@ __dead static void usage_blame(void) { endwin(); - fprintf(stderr, "usage: %s blame [-c commit] [-r repository-path] path\n", + fprintf(stderr, + "usage: %s blame [-c commit] [-r repository-path] path\n", getprogname()); exit(1); } @@ -4375,7 +4376,8 @@ draw_blame(struct tog_view *view) waddstr(view->window, " "); } else if (blame_line->annotated) { char *id_str; - err = got_object_id_str(&id_str, blame_line->id); + err = got_object_id_str(&id_str, + blame_line->id); if (err) { free(line); return err; @@ -6029,7 +6031,8 @@ __dead static void usage_tree(void) { endwin(); - fprintf(stderr, "usage: %s tree [-c commit] [-r repository-path] [path]\n", + fprintf(stderr, + "usage: %s tree [-c commit] [-r repository-path] [path]\n", getprogname()); exit(1); }