Commit Diff

Commit:
675a8e0a79a845b3bbb8dafcc4f8ee2ddf210f53
From:
Stefan Sperling <stsp@stsp.name>
Date:
Sun May 28 12:12:19 2023 UTC
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.

commit - 77fc0a255189c6c18e1ea0d6ea82ae1d0ddb4ea7
commit + 675a8e0a79a845b3bbb8dafcc4f8ee2ddf210f53
blob - 96f7de49f09ae8cf589aa33bf8856131995de5fb
blob + c0b0880667c2484ea19d6a78cd9d9455cadbaf33
--- 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;