]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-atom.c
Mark several functions/variables static
[ps-cgit] / ui-atom.c
index 9331f74fe87120ab92c39feeb6c7bf517b09445d..5b5525d2976701f9a27343a244dcb6c3a1b07fa0 100644 (file)
--- a/ui-atom.c
+++ b/ui-atom.c
@@ -10,7 +10,7 @@
 #include "html.h"
 #include "ui-shared.h"
 
 #include "html.h"
 #include "ui-shared.h"
 
-void add_entry(struct commit *commit, char *host)
+static void add_entry(struct commit *commit, char *host)
 {
        char delim = '&';
        char *hex;
 {
        char delim = '&';
        char *hex;
@@ -111,6 +111,14 @@ void cgit_print_atom(char *tip, char *path, int max_count)
        html("<feed xmlns='http://www.w3.org/2005/Atom'>\n");
        html("<title>");
        html_txt(ctx.repo->name);
        html("<feed xmlns='http://www.w3.org/2005/Atom'>\n");
        html("<title>");
        html_txt(ctx.repo->name);
+       if (path) {
+               html("/");
+               html_txt(path);
+       }
+       if (tip && !ctx.qry.show_all) {
+               html(", branch ");
+               html_txt(tip);
+       }
        html("</title>\n");
        html("<subtitle>");
        html_txt(ctx.repo->desc);
        html("</title>\n");
        html("<subtitle>");
        html_txt(ctx.repo->desc);