commit 87411fa9fa02ed103ef9b39edb8f2751155567c7 from: Stefan Sperling date: Thu Jun 16 18:24:53 2022 UTC wrap overlong lines in tog.c commit - 4cb9d869771dfcbb9e460e1f2924b289b34aff7c commit + 87411fa9fa02ed103ef9b39edb8f2751155567c7 blob - 6db125a8a56dececb4b421750f0f92d3644f8601 blob + bdff5844ccda157277e95325887def00e1f69e73 --- tog/tog.c +++ tog/tog.c @@ -1802,8 +1802,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; @@ -4258,7 +4258,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); } @@ -4366,7 +4367,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; @@ -6020,7 +6022,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); }