commit 0d095295f9c0504bf7b11611b530becd27f34ee1 from: Stefan Sperling via: Thomas Adam date: Thu Jun 01 10:18:37 2023 UTC stop showing backup references in the tog log and diff views Backup references clutter the log view too much now that we display labels next to commit messages. They were accidentally added to the log and diffs view by me, via build_refs_str(), when support for listing backup references was added to the ref view. commit - fcfb26c37e218d01b0cfb8b960b7b186f9ee285e commit + 0d095295f9c0504bf7b11611b530becd27f34ee1 blob - 9e373e9ea71a56438d94e21186e9dff1d7e6d312 blob + 055e22bd2ea643c3ce23aa4d424b09795e56c765 --- tog/tog.c +++ tog/tog.c @@ -2339,8 +2339,7 @@ build_refs_str(char **refs_str, struct got_reflist_hea continue; if (strncmp(name, "refs/", 5) == 0) name += 5; - if (strncmp(name, "got/", 4) == 0 && - strncmp(name, "got/backup/", 11) != 0) + if (strncmp(name, "got/", 4) == 0) continue; if (strncmp(name, "heads/", 6) == 0) name += 6;