This will allow us to remove cgit_print_date and use Git's show_date
consistently.
Signed-off-by: John Keeping
---
ui-atom.c | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/ui-atom.c b/ui-atom.c
index 11ea0c0..0bf2cf2 100644
--- a/ui-atom.c
+++ b/ui-atom.c
@@ -17,6 +
Signed-off-by: John Keeping
---
ui-shared.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui-shared.c b/ui-shared.c
index 0322968..9699524 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -797,7 +797,7 @@ void cgit_print_docend(void)
else {
htmlf("genera
There are no longer any users of this function.
Signed-off-by: John Keeping
---
ui-shared.c | 20
ui-shared.h | 1 -
2 files changed, 21 deletions(-)
diff --git a/ui-shared.c b/ui-shared.c
index 9699524..286aa92 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -607,26 +607,6
This returns the correct mode value for use with Git's show_date() based
on the current CGit configuration and will be used in the following
patches.
Signed-off-by: John Keeping
---
ui-shared.c | 9 +
ui-shared.h | 1 +
2 files changed, 10 insertions(+)
diff --git a/ui-shared.c b/ui-sha
This will allow us to mimic Git's behaviour of showing times in the
originator's timezone when displaying commits and tags.
Signed-off-by: John Keeping
---
cgit.h| 3 +++
parsing.c | 10 ++
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/cgit.h b/cgit.h
index b7eccdd.
We never use any format other than FMT_SHORTDATE, so move that into the
function.
Signed-off-by: John Keeping
---
ui-log.c | 4 ++--
ui-refs.c | 6 +++---
ui-repolist.c | 2 +-
ui-shared.c | 4 ++--
ui-shared.h | 2 +-
5 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/u
This is done by switching to Git's show_date() function and the mode
given by cgit_date_mode().
Signed-off-by: John Keeping
---
ui-commit.c | 6 --
ui-tag.c| 3 ++-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/ui-commit.c b/ui-commit.c
index 0c3d740..e697571 100644
---
This affects the tooltip showing the full time and the case when a date
is sufficiently old to be shown in full rather than as an offset.
Signed-off-by: John Keeping
---
ui-log.c | 4 ++--
ui-refs.c | 6 +++---
ui-repolist.c | 2 +-
ui-shared.c | 22 +++---
ui-share
This is the result of an issue I identified a while ago [1]. Now that
we use Git 2.7 we can use the timezone handling code in libgit.a without
needing to use a very specific format when showing times in the local
timezone.
This changes the default used for displaying times from commits and tags
t