]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-commit.c
Add head comment to shared.c
[ps-cgit] / ui-commit.c
index 1c0e7e5f593361e19712070e0367886eb99e1830..2d360158c5c1b504d4faac699f719da4220e866e 100644 (file)
@@ -1,15 +1,12 @@
-#include "cgit.h"
-
-void cgit_print_date(unsigned long secs)
-{
-       char buf[32];
-       struct tm *time;
+/* ui-commit.c: generate commit view
+ *
+ * Copyright (C) 2006 Lars Hjemli
+ *
+ * Licensed under GNU General Public License v2
+ *   (see COPYING for full license text)
+ */
 
-       time = gmtime(&secs);
-       strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", time);
-       html_txt(buf);
-       
-}
+#include "cgit.h"
 
 void cgit_print_commit(const char *hex)
 {