]> gitweb.ps.run Git - ps-cgit/commitdiff
git: update to v2.45.0
authorChristian Hesse <mail@eworm.de>
Fri, 19 Apr 2024 20:39:20 +0000 (22:39 +0200)
committerChristian Hesse <mail@eworm.de>
Mon, 29 Apr 2024 19:13:53 +0000 (21:13 +0200)
Update to git version v2.45.0, this requires changes for these
upstream commits:

9720d23e8caf4adee44b3a32803a9bb0480118bd
  date: make DATE_MODE thread-safe

Signed-off-by: Christian Hesse <mail@eworm.de>
Makefile
git
ui-shared.c
ui-shared.h

index c3ee26755d0c58f693a461e0f12f2697e8784206..2612a75c275a305046c72daf9638487b404be618 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ htmldir = $(docdir)
 pdfdir = $(docdir)
 mandir = $(prefix)/share/man
 SHA1_HEADER = <openssl/sha.h>
-GIT_VER = 2.44.0
+GIT_VER = 2.45.0
 GIT_URL = https://www.kernel.org/pub/software/scm/git/git-$(GIT_VER).tar.xz
 INSTALL = install
 COPYTREE = cp -r
diff --git a/git b/git
index 3c2a3fdc388747b9eaf4a4a4f2035c1c9ddb26d0..786a3e4b8d754d2b14b1208b98eeb0a554ef19a8 160000 (submodule)
--- a/git
+++ b/git
@@ -1 +1 @@
-Subproject commit 3c2a3fdc388747b9eaf4a4a4f2035c1c9ddb26d0
+Subproject commit 786a3e4b8d754d2b14b1208b98eeb0a554ef19a8
index eef2aa87cfc9474e7a5b2b2ad68027d445b25518..d5b5b203b7dbdc6a6b7e03096de45163ede76286 100644 (file)
@@ -662,12 +662,12 @@ void cgit_submodule_link(const char *class, char *path, const char *rev)
                path[len - 1] = tail;
 }
 
-const struct date_mode *cgit_date_mode(enum date_mode_type type)
+const struct date_mode cgit_date_mode(enum date_mode_type type)
 {
        static struct date_mode mode;
        mode.type = type;
        mode.local = ctx.cfg.local_time;
-       return &mode;
+       return mode;
 }
 
 static void print_rel_date(time_t t, int tz, double value,
index 6964873a63942e2222d3981d73d4178c52c51508..f12fa99492cfe7d7d40c12dfecdad5c145348b59 100644 (file)
@@ -65,7 +65,7 @@ __attribute__((format (printf,1,2)))
 extern void cgit_print_error(const char *fmt, ...);
 __attribute__((format (printf,1,0)))
 extern void cgit_vprint_error(const char *fmt, va_list ap);
-extern const struct date_mode *cgit_date_mode(enum date_mode_type type);
+extern const struct date_mode cgit_date_mode(enum date_mode_type type);
 extern void cgit_print_age(time_t t, int tz, time_t max_relative);
 extern void cgit_print_http_headers(void);
 extern void cgit_redirect(const char *url, bool permanent);