Commit 927861745076a7ca31ab93ce23ca92b93a7810d8

Stefan Sperling 2020-02-14T09:48:39

make gotweb's summary page display which branch the commit briefs belong to

diff --git a/gotweb/gotweb.c b/gotweb/gotweb.c
index 63acb73..6539b90 100644
--- a/gotweb/gotweb.c
+++ b/gotweb/gotweb.c
@@ -1321,6 +1321,17 @@ gw_summary(struct gw_trans *gw_trans)
 	kerr = khtml_puts(gw_trans->gw_html_req, "Commit Briefs");
 	if (kerr != KCGI_OK)
 		goto done;
+	if (gw_trans->headref) {
+		kerr = khtml_puts(gw_trans->gw_html_req, " (");
+		if (kerr != KCGI_OK)
+			goto done;
+		kerr = khtml_puts(gw_trans->gw_html_req, gw_trans->headref);
+		if (kerr != KCGI_OK)
+			goto done;
+		kerr = khtml_puts(gw_trans->gw_html_req, ")");
+		if (kerr != KCGI_OK)
+			goto done;
+	}
 	kerr = khtml_closeelem(gw_trans->gw_html_req, 2);
 	if (kerr != KCGI_OK)
 		goto done;