git: 72bbc3a8fa6a - main - devel/magit: update to 4.5.0.

From: Vanilla I. Shu <vanilla_at_FreeBSD.org>
Date: Fri, 20 Feb 2026 15:22:28 UTC
The branch main has been updated by vanilla:

URL: https://cgit.FreeBSD.org/ports/commit/?id=72bbc3a8fa6a9094bf664bc6be84183fa8d9f2c6

commit 72bbc3a8fa6a9094bf664bc6be84183fa8d9f2c6
Author:     Vanilla I. Shu <vanilla@FreeBSD.org>
AuthorDate: 2026-02-20 15:21:47 +0000
Commit:     Vanilla I. Shu <vanilla@FreeBSD.org>
CommitDate: 2026-02-20 15:22:15 +0000

    devel/magit: update to 4.5.0.
---
 devel/magit/Makefile                             |  4 +-
 devel/magit/distinfo                             |  6 +--
 devel/magit/files/patch-lisp_magit-autorevert.el | 48 ------------------------
 3 files changed, 5 insertions(+), 53 deletions(-)

diff --git a/devel/magit/Makefile b/devel/magit/Makefile
index cd47f3f864da..f50fc28c15ad 100644
--- a/devel/magit/Makefile
+++ b/devel/magit/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	magit
 DISTVERSIONPREFIX=	v
-DISTVERSION=	4.4.2
-PORTREVISION=	1
+DISTVERSION=	4.5.0
+PORTREVISION=	0
 CATEGORIES=	devel elisp
 PKGNAMESUFFIX=	${EMACS_PKGNAMESUFFIX}
 
diff --git a/devel/magit/distinfo b/devel/magit/distinfo
index fc0df31ed83b..253e553c5f58 100644
--- a/devel/magit/distinfo
+++ b/devel/magit/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1759795366
-SHA256 (magit-magit-v4.4.2_GH0.tar.gz) = 8a6a15e8468ffc5f439686e099237f09a18d4ebc169cec23960733d458ef2024
-SIZE (magit-magit-v4.4.2_GH0.tar.gz) = 701346
+TIMESTAMP = 1771588788
+SHA256 (magit-magit-v4.5.0_GH0.tar.gz) = 8f99c6080fb9656606be1dc588b82d9756de1c7461375b0f24f83d0ac09ef413
+SIZE (magit-magit-v4.5.0_GH0.tar.gz) = 702733
diff --git a/devel/magit/files/patch-lisp_magit-autorevert.el b/devel/magit/files/patch-lisp_magit-autorevert.el
deleted file mode 100644
index f85fe0995e7e..000000000000
--- a/devel/magit/files/patch-lisp_magit-autorevert.el
+++ /dev/null
@@ -1,48 +0,0 @@
-From 5183b8f0d42345432a560996e4f434d27452faa8 Mon Sep 17 00:00:00 2001
-From: Jonas Bernoulli <jonas@bernoul.li>
-Date: Fri, 24 Oct 2025 23:25:01 +0200
-Subject: [PATCH] Support Emacs builds that feature
- custom-initialize-after-file-load
-
-This will need more work.  We might be able to learn from that function
-and simplify even when that is not available.  Also, while rudimentary
-testing indicates this works as intended, this has to be studied in more
-detail before we can be sure.  Do it now anyway, because the breakage
-caused by not doing is definitely real.
-
-See #5462.
----
- lisp/magit-autorevert.el | 17 ++++++++++-------
- 1 file changed, 10 insertions(+), 7 deletions(-)
-
-diff --git lisp/magit-autorevert.el lisp/magit-autorevert.el
-index 90d83367..564b9c0d 100644
---- lisp/magit-autorevert.el
-+++ lisp/magit-autorevert.el
-@@ -166,13 +166,16 @@ and code surrounding the definition of this function."
-              (format " (%.3fs, %s buffers checked)" elapsed
-                      (length (buffer-list)))
-            ""))))))
--(if after-init-time
--    ;; Since `after-init-hook' has already been
--    ;; run, turn the mode on or off right now.
--    (magit-auto-revert-mode--init-kludge)
--  ;; By the time the init file has been fully loaded the
--  ;; values of the relevant variables might have changed.
--  (add-hook 'after-init-hook #'magit-auto-revert-mode--init-kludge t))
-+;; FIXME Suppressing this for recent 31.0.50 builds is not the
-+;; final solution.
-+(unless (fboundp 'custom-initialize-after-file-load)
-+  (if after-init-time
-+      ;; Since `after-init-hook' has already been
-+      ;; run, turn the mode on or off right now.
-+      (magit-auto-revert-mode--init-kludge)
-+    ;; By the time the init file has been fully loaded the
-+    ;; values of the relevant variables might have changed.
-+    (add-hook 'after-init-hook #'magit-auto-revert-mode--init-kludge t)))
- 
- (put 'magit-auto-revert-mode 'function-documentation
-      "Toggle Magit Auto Revert mode.
--- 
-2.51.2
-