Subject: [bug#75404] [PATCH] gnu: Add emacs-stgit.

From: Nicolas Graves <[email-masked]>
Date: Mon, 6 Jan 2025 14:00:45 +0100

* gnu/packages/version-control.scm (emacs-stgit): New variable.
---
 gnu/packages/version-control.scm | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index e63a843fc3..f30c3dc7c7 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -47,7 +47,7 @@
 ;;; Copyright © 2022 Maxime Devos <[email-masked]>
 ;;; Copyright © 2022 Dhruvin Gandhi <[email-masked]>
 ;;; Copyright © 2015, 2022 David Thompson <[email-masked]>
-;;; Copyright © 2023 Nicolas Graves <[email-masked]>
+;;; Copyright © 2023, 2025 Nicolas Graves <[email-masked]>
 ;;; Copyright © 2023 Bruno Victal <[email-masked]>
 ;;; Copyright © 2023 Kjartan Oli Agustsson <[email-masked]>
 ;;; Copyright © 2023 Steve George <[email-masked]>
@@ -87,6 +87,7 @@ (define-module (gnu packages version-control)
   #:use-module (guix build-system cargo)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system copy)
+  #:use-module (guix build-system emacs)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system go)
   #:use-module (guix build-system perl)
@@ -1916,6 +1917,18 @@ (define-public stgit-2
 @end itemize")
     (license license:gpl2)))
 
+(define-public emacs-stgit
+  (package
+    (inherit stgit-2)
+    (name "emacs-stgit")
+    (build-system emacs-build-system)
+    (arguments
+     (list #:include '(list "contrib/stgit.el")))
+    (synopsis "Emacs major mode for StGit interaction")
+    (description "This package a interactive tool to interact with git
+branches using StGit.")
+    (license license:gpl3+)))
+
 (define-public stgit
   (package
     (name "stgit")
-- 
2.47.1