-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Open
Description
I am not fully up to date, so I created a patch for the content rather than mucking with my fork and whatnot. Please integrate this addition to the Magit/git layer.
0001-Add-spacemacs-magit-status-for-a-universal-helper-to.patch
From 73a7ac69f8009547e72ee904aa3a8a9d4c23e029 Mon Sep 17 00:00:00 2001
From: Bryce Carson <[email protected]>
Date: Sun, 12 Oct 2025 17:48:58 -0600
Subject: [PATCH] Add spacemacs/magit-status for a universal helper to update
Spacemacs git
---
layers/+source-control/git/funcs.el | 5 +++++
layers/+source-control/git/packages.el | 1 +
2 files changed, 6 insertions(+)
diff --git a/layers/+source-control/git/funcs.el b/layers/+source-control/git/funcs.el
index cc26a8950..d770d940a 100644
--- a/layers/+source-control/git/funcs.el
+++ b/layers/+source-control/git/funcs.el
@@ -24,6 +24,11 @@
;; magit
+(defun spacemacs/magit-status ()
+ "The magit status of the Spacemacs directory."
+ (interactive)
+ (magit-status (file-name-parent-directory spacemacs-core-directory)))
+
(defun spacemacs/magit-toggle-whitespace ()
"Toggle whitespace in `magit-diff-mode'."
(interactive)
diff --git a/layers/+source-control/git/packages.el b/layers/+source-control/git/packages.el
index 76006e281..64da678d2 100644
--- a/layers/+source-control/git/packages.el
+++ b/layers/+source-control/git/packages.el
@@ -150,6 +150,7 @@
;; key bindings
(spacemacs/declare-prefix "gf" "file")
(spacemacs/set-leader-keys
+ "feg" 'spacemacs/magit-status
"gb" 'spacemacs/git-blame-transient-state/body
"gc" 'magit-clone
"gfF" 'magit-find-file
--
2.51.0
Metadata
Metadata
Assignees
Labels
No labels