Commit 8324592c authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-remote-list-{branches,tags}: cosmetics

parent da0e3c16
......@@ -1007,14 +1007,14 @@ where COMMITS is the number of commits in TAG but not in REV."
(--map (substring it 6) (magit-list-refnames "refs/notes")))
(defun magit-remote-list-tags (remote)
(--map (substring it 51)
(--filter (not (string-match-p "\\^{}$" it))
(magit-git-lines "ls-remote" "--tags" remote))))
(--keep (and (not (string-match-p "\\^{}$" it))
(substring it 51))
(magit-git-lines "ls-remote" "--tags" remote)))
(defun magit-remote-list-branches (remote)
(--map (substring it 52)
(--filter (not (string-match-p "\\^{}$" it))
(magit-git-lines "ls-remote" "--heads" remote))))
(--keep (and (not (string-match-p "\\^{}$" it))
(substring it 52))
(magit-git-lines "ls-remote" "--heads" remote)))
(defun magit-get-submodules ()
(--mapcat (and (string-match "^160000 [0-9a-z]\\{40\\} 0\t\\(.+\\)$" it)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment