mirror of
https://codeberg.org/gwh/slackbuilds.git
synced 2024-11-16 19:51:19 +01:00
Always use "git cmd" instead of "git-cmd".
The latter was deprecated and doesn't work anymore in git 1.6.
This commit is contained in:
parent
fff4e179b9
commit
b7c1292701
1 changed files with 7 additions and 7 deletions
14
magit.el
14
magit.el
|
@ -81,23 +81,23 @@
|
|||
(concat (car seqs) delim (magit-concat-with-delim delim (cdr seqs))))))
|
||||
|
||||
(defun magit-get (&rest keys)
|
||||
(magit-shell "git-config %s" (magit-concat-with-delim "." keys)))
|
||||
(magit-shell "git config %s" (magit-concat-with-delim "." keys)))
|
||||
|
||||
(defun magit-set (val &rest keys)
|
||||
(if val
|
||||
(magit-shell "git-config %s %s" (magit-concat-with-delim "." keys) val)
|
||||
(magit-shell "git-config --unset %s" (magit-concat-with-delim "." keys))))
|
||||
(magit-shell "git config %s %s" (magit-concat-with-delim "." keys) val)
|
||||
(magit-shell "git config --unset %s" (magit-concat-with-delim "." keys))))
|
||||
|
||||
(defun magit-get-top-dir (cwd)
|
||||
(let* ((cwd (expand-file-name cwd))
|
||||
(magit-dir (magit-shell "cd '%s' && git-rev-parse --git-dir 2>/dev/null"
|
||||
(magit-dir (magit-shell "cd '%s' && git rev-parse --git-dir 2>/dev/null"
|
||||
cwd)))
|
||||
(if magit-dir
|
||||
(file-name-as-directory (or (file-name-directory magit-dir) cwd))
|
||||
nil)))
|
||||
|
||||
(defun magit-get-ref (ref)
|
||||
(magit-shell "git-symbolic-ref -q %s" ref))
|
||||
(magit-shell "git symbolic-ref -q %s" ref))
|
||||
|
||||
(defun magit-get-current-branch ()
|
||||
(let* ((head (magit-get-ref "HEAD"))
|
||||
|
@ -661,7 +661,7 @@ pushed.
|
|||
|
||||
(defun magit-stage-all ()
|
||||
(interactive)
|
||||
(magit-run "git-add" "-u" "."))
|
||||
(magit-run "git" "add" "-u" "."))
|
||||
|
||||
;;; Branches
|
||||
|
||||
|
@ -777,7 +777,7 @@ pushed.
|
|||
(write-region (point-min) (point-max) ".git/magit-log")
|
||||
(write-region "(Empty description)" nil ".git/magit-log"))
|
||||
(erase-buffer)
|
||||
(magit-run "git-commit" "-F" ".git/magit-log")
|
||||
(magit-run "git" "commit" "-F" ".git/magit-log")
|
||||
(bury-buffer)
|
||||
(when magit-pre-log-edit-window-configuration
|
||||
(set-window-configuration magit-pre-log-edit-window-configuration)
|
||||
|
|
Loading…
Reference in a new issue