Commit Diff
- Commit:
675a8e0a79a845b3bbb8dafcc4f8ee2ddf210f53
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
- Message:
- 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.
- Actions:
- Patch | Tree
--- tog/tog.c +++ tog/tog.c @@ -2335,8 +2335,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;