Commit 992bb2f8 was a fantastic bit of cleanup, but using a different variable name in the second `for' clause would have been even better.
Signed-off-by: Pieter Praet <[email protected]> --- magit.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/magit.el b/magit.el index 5b993bd..c5f7fbe 100644 --- a/magit.el +++ b/magit.el @@ -1415,15 +1415,15 @@ (defun magit-list-interesting-refs (&optional uninteresting) Removes references matching UNINTERESTING from the results. UNINTERESTING can be either a function taking a single argument or a list of strings used as regexps." - (cl-loop for ref in (magit-git-lines "show-ref") - for ref = (cadr (split-string ref " ")) + (cl-loop for ref-line in (magit-git-lines "show-ref") + for ref-name = (cadr (split-string ref-line " ")) unless (if (functionp uninteresting) - (funcall uninteresting ref) + (funcall uninteresting ref-name) (cl-loop for i in uninteresting - thereis (string-match i ref))) - collect (cons (magit-format-ref ref) + thereis (string-match i ref-name))) + collect (cons (magit-format-ref ref-name) (replace-regexp-in-string - "^refs/heads/" "" ref)))) + "^refs/heads/" "" ref-name)))) (defun magit-format-ref (ref) "Convert fully-specified ref REF into its displayable form -- 1.7.11.1 -- --- You received this message because you are subscribed to the Google Groups "magit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
