update packages
This commit is contained in:
@@ -63,7 +63,7 @@ To change the value in an existing buffer use the command
|
||||
`magit-refs-set-show-commit-count'."
|
||||
:package-version '(magit . "2.1.0")
|
||||
:group 'magit-refs
|
||||
:safe (lambda (val) (memq val '(all branch nil)))
|
||||
:safe (##memq % '(all branch nil))
|
||||
:type '(choice (const :tag "For branches and tags" all)
|
||||
(const :tag "For branches only" branch)
|
||||
(const :tag "Never" nil)))
|
||||
@@ -134,7 +134,7 @@ AUTHOR-WIDTH has to be an integer. When the name of the author
|
||||
:package-version '(magit . "2.9.0")
|
||||
:group 'magit-refs
|
||||
:group 'magit-margin
|
||||
:safe (lambda (val) (memq val '(all branch nil)))
|
||||
:safe (##memq % '(all branch nil))
|
||||
:type magit-log-margin--custom-type
|
||||
:initialize #'magit-custom-initialize-reset
|
||||
:set-after '(magit-log-margin)
|
||||
@@ -333,8 +333,7 @@ Type \\[magit-reset] to reset `HEAD' to the commit at point.
|
||||
(transient-define-prefix magit-show-refs (&optional transient)
|
||||
"List and compare references in a dedicated buffer."
|
||||
:man-page "git-branch"
|
||||
:value (lambda ()
|
||||
(magit-show-refs-arguments magit-prefix-use-buffer-arguments))
|
||||
:value (##magit-show-refs-arguments magit-prefix-use-buffer-arguments)
|
||||
["Arguments"
|
||||
(magit-for-each-ref:--contains)
|
||||
("-M" "Merged" "--merged=" magit-transient-read-revision)
|
||||
@@ -566,7 +565,7 @@ line is inserted at all."
|
||||
(magit-refs--format-margin tag))
|
||||
(magit-refs--insert-cherry-commits tag)))))
|
||||
(insert ?\n)
|
||||
(magit-make-margin-overlay nil t)))))
|
||||
(magit-make-margin-overlay)))))
|
||||
|
||||
(defun magit-insert-remote-branches ()
|
||||
"Insert sections showing all remote-tracking branches."
|
||||
@@ -621,7 +620,7 @@ line is inserted at all."
|
||||
(magit-refs--format-margin branch))
|
||||
(magit-refs--insert-cherry-commits branch))))))))
|
||||
(insert ?\n)
|
||||
(magit-make-margin-overlay nil t))))
|
||||
(magit-make-margin-overlay))))
|
||||
|
||||
(defun magit-insert-local-branches ()
|
||||
"Insert sections showing all local branches."
|
||||
@@ -638,7 +637,22 @@ line is inserted at all."
|
||||
(magit-refs--format-margin branch))
|
||||
(magit-refs--insert-cherry-commits branch))))
|
||||
(insert ?\n)
|
||||
(magit-make-margin-overlay nil t)))
|
||||
(magit-make-margin-overlay)))
|
||||
|
||||
(defun magit-insert-shelved-branches ()
|
||||
"Insert sections showing all shelved branches."
|
||||
(when-let ((refs (magit-list-refs "refs/shelved/")))
|
||||
(magit-insert-section (shelved nil)
|
||||
(magit-insert-heading t "Shelved branches")
|
||||
(dolist (ref (nreverse refs))
|
||||
(magit-insert-section (shelved-branch ref t)
|
||||
(magit-insert-heading
|
||||
" " (magit--propertize-face (substring ref 13) 'magit-refname))
|
||||
(when (magit-buffer-margin-p)
|
||||
(magit-refs--format-margin ref))
|
||||
(magit-refs--insert-cherry-commits ref)))
|
||||
(insert ?\n)
|
||||
(magit-make-margin-overlay))))
|
||||
|
||||
(defun magit-refs--format-local-branches ()
|
||||
(let ((lines (seq-keep #'magit-refs--format-local-branch
|
||||
@@ -788,15 +802,12 @@ line is inserted at all."
|
||||
"cherry" "-v" (magit-abbrev-arg) magit-buffer-upstream ref)
|
||||
(if (= (point) start)
|
||||
(message "No cherries for %s" ref)
|
||||
(magit-make-margin-overlay nil t)))))
|
||||
(magit-make-margin-overlay)))))
|
||||
|
||||
(defun magit-refs--format-margin (commit)
|
||||
(save-excursion
|
||||
(goto-char (line-beginning-position 0))
|
||||
(let ((line (magit-rev-format "%ct%cN" commit)))
|
||||
(magit-log-format-margin commit
|
||||
(substring line 10)
|
||||
(substring line 0 10)))))
|
||||
(if-let ((line (magit-rev-format "%cN%x00%ct" commit)))
|
||||
(apply #'magit-log-format-margin commit (split-string line "\0"))
|
||||
(magit-make-margin-overlay)))
|
||||
|
||||
;;; _
|
||||
(provide 'magit-refs)
|
||||
|
||||
Reference in New Issue
Block a user