Commit Diff
- Commit:
0d095295f9c0504bf7b11611b530becd27f34ee1
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- 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 @@ -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;