aboutsummaryrefslogtreecommitdiffstats
path: root/ui-commit.c
diff options
context:
space:
mode:
authorGravatar Lars Hjemli <hjemli@gmail.com>2006-12-16 08:33:28 (JST)
committerGravatar Lars Hjemli <hjemli@gmail.com>2006-12-16 08:33:28 (JST)
commit148fb9622c6a96021e572d1a372e38896506031f (patch)
tree2bfde276f3fed3b3a42afbdd90a64c98d0502ae3 /ui-commit.c
parent9a8f88658d51aeb86a79ac1121de13562ad2601f (diff)
downloadcgit-148fb9622c6a96021e572d1a372e38896506031f.zip
cgit-148fb9622c6a96021e572d1a372e38896506031f.tar.gz
Move cgit_print_date into ui-shared, reuse in ui-summary
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'ui-commit.c')
-rw-r--r--ui-commit.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/ui-commit.c b/ui-commit.c
index 1c0e7e5..2d38f0b 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -1,16 +1,5 @@
1#include "cgit.h" 1#include "cgit.h"
2 2
3void cgit_print_date(unsigned long secs)
4{
5 char buf[32];
6 struct tm *time;
7
8 time = gmtime(&secs);
9 strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", time);
10 html_txt(buf);
11
12}
13
14void cgit_print_commit(const char *hex) 3void cgit_print_commit(const char *hex)
15{ 4{
16 struct commit *commit; 5 struct commit *commit;