Subject: [PATCH] gnu: Add emacs-magit-tbdiff.

From: Liam Hupfer <[email-masked]>
Date: Sun, 23 Feb 2025 13:17:22 -0600

* gnu/packages/emacs-xyz.scm (emacs-magit-tbdiff): New variable.

Change-Id: I706875beba2c896962e8c811b7bc6b1e45e99c93
---
 gnu/packages/emacs-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 59c1927135..31ee90d989 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -2034,6 +2034,29 @@ (define-public emacs-magit-annex
      "Magit-annex adds a few git-annex operations to the Magit interface.")
     (license license:gpl3+)))
 
+(define-public emacs-magit-tbdiff
+  (package
+    (name "emacs-magit-tbdiff")
+    (version "1.2.0")
+    (home-page "https://github.com/magit/magit-tbdiff")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1jh6wspb6ijmkqvyaswqj60ixpgjj2ijcf0b53q48pfs5dwc97p4"))))
+    (build-system emacs-build-system)
+    (propagated-inputs (list emacs-magit))
+    (synopsis "Magit extension for range diffs")
+    (description
+     "Magit-tbdiff provides a Magit interface to @code{git-range-diff} (and its
+third-party predecessor @code{git-tbdiff}), a Git subcommand for comparing two
+versions of a topic branch.")
+    (license license:gpl3+)))
+
 (define-public emacs-malyon
   (package
     (name "emacs-malyon")

base-commit: 23b068c036223e70bdea9d7d579850a1cffc02a7
-- 
2.48.1