diff options
Diffstat (limited to '.emacs.d/lisp/init-git.el')
-rw-r--r-- | .emacs.d/lisp/init-git.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-git.el b/.emacs.d/lisp/init-git.el index 1d7183e..4863b75 100644 --- a/.emacs.d/lisp/init-git.el +++ b/.emacs.d/lisp/init-git.el @@ -71,6 +71,7 @@ (message "not a git repository")))) (use-package magit + :ensure (magit :branch "main") :bind ("C-c g g" . magit-dispatch) ;; magit-file-dispatch is C-c M-g ("C-c g u" . my/magit-set-upstream) @@ -303,9 +304,17 @@ (magit-refresh))) (use-package forge + :ensure (forge :branch "main") :after magit :bind (:map forge-pullreq-list-mode-map ("C-w" . forge-copy-url-at-point-as-kill))) +;; ghub and with-editor are dependencies of magit, but we need to force them to use the main branch +(use-package ghub + :ensure (ghub :branch "main")) + +(use-package with-editor + :ensure (with-editor :branch "main")) + (use-package git-link :config (defun git-link-on-branch () |