Commit c3ba6f369e4a9a5bad18b8199d233947d9739cbe

Stefan Sperling 2018-08-01T14:49:57

don't show the root path in tog log view header

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tog/tog.c b/tog/tog.c
index 8777bbb..da22851 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -620,7 +620,7 @@ draw_commits(struct tog_view *view, struct commit_queue_entry **last,
 	if (err)
 		return err;
 
-	if (path) {
+	if (path && strcmp(path, "/") != 0) {
 		if (asprintf(&header, "commit: %s [%s]", id_str, path) == -1) {
 			err = got_error_from_errno();
 			free(id_str);