* [PATCH 1/1] ui-shared: allow remote refs in branch switcher
@ 2015-03-18 17:08 list
2015-03-18 17:23 ` Jason
0 siblings, 1 reply; 2+ messages in thread
From: list @ 2015-03-18 17:08 UTC (permalink / raw)
From: Christian Hesse <mail at eworm.de>
Signed-off-by: Christian Hesse <mail at eworm.de>
---
ui-shared.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ui-shared.c b/ui-shared.c
index 1dd8722..ac5a287 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -895,6 +895,8 @@ static void print_header(void)
cgit_add_hidden_formfields(0, 1, ctx.qry.page);
html("<select name='h' onchange='this.form.submit();'>\n");
for_each_branch_ref(print_branch_option, ctx.qry.head);
+ if (ctx.repo->enable_remote_branches)
+ for_each_remote_ref(print_branch_option, ctx.qry.head);
html("</select> ");
html("<input type='submit' name='' value='switch'/>");
html("</form>");
--
2.3.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] ui-shared: allow remote refs in branch switcher
2015-03-18 17:08 [PATCH 1/1] ui-shared: allow remote refs in branch switcher list
@ 2015-03-18 17:23 ` Jason
0 siblings, 0 replies; 2+ messages in thread
From: Jason @ 2015-03-18 17:23 UTC (permalink / raw)
Thanks, merged.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-18 17:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-18 17:08 [PATCH 1/1] ui-shared: allow remote refs in branch switcher list
2015-03-18 17:23 ` Jason
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).