Removed old insert functions.
This commit is contained in:
parent
7eb66a4310
commit
82883d1de3
1 changed files with 8 additions and 33 deletions
25
magit.el
25
magit.el
|
@ -2534,30 +2534,6 @@ insert a line to tell how to insert more of them"
|
|||
(format "HEAD..%s"
|
||||
(magit-remote-branch-name remote branch)))))
|
||||
|
||||
(defun magit-insert-unpulled-commits (remote branch)
|
||||
(magit-git-section 'unpulled
|
||||
"Unpulled commits:" 'magit-wash-log
|
||||
"log" "--pretty=format:* %H %s"
|
||||
(format "HEAD..%s/%s" remote branch)))
|
||||
|
||||
(defun magit-insert-unpushed-commits (remote branch)
|
||||
(magit-git-section 'unpushed
|
||||
"Unpushed commits:" 'magit-wash-log
|
||||
"log" "--pretty=format:* %H %s"
|
||||
(format "%s/%s..HEAD" remote branch)))
|
||||
|
||||
(defun magit-insert-unpulled-svn-commits (&optional use-cache)
|
||||
(magit-git-section 'svn-unpulled
|
||||
"Unpulled commits (SVN):" 'magit-wash-log
|
||||
"log" "--pretty=format:* %H %s"
|
||||
(format "HEAD..%s" (magit-get-svn-ref use-cache))))
|
||||
|
||||
(defun magit-insert-unpushed-svn-commits (&optional use-cache)
|
||||
(magit-git-section 'svn-unpushed
|
||||
"Unpushed commits (SVN):" 'magit-wash-log
|
||||
"log" "--pretty=format:* %H %s"
|
||||
(format "%s..HEAD" (magit-get-svn-ref use-cache))))
|
||||
|
||||
(defun magit-remote-branch-for (local-branch)
|
||||
"Guess the remote branch name that LOCAL-BRANCH is tracking."
|
||||
(let ((merge (magit-get "branch" local-branch "merge")))
|
||||
|
@ -3027,7 +3003,6 @@ update it."
|
|||
(interactive (list (when current-prefix-arg (magit-read-remote))))
|
||||
(cond
|
||||
(remote (magit-run-git-async "fetch" remote))
|
||||
((magit-svn-enabled) (magit-run-git-async "svn" "fetch"))
|
||||
(t (magit-run-git-async "remote" "update"))))
|
||||
|
||||
(magit-define-command pull ()
|
||||
|
|
Loading…
Reference in a new issue