wrap overlong lines in tog.c
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
diff --git a/tog/tog.c b/tog/tog.c
index 6db125a..bdff584 100644
--- a/tog/tog.c
+++ b/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);
}