From 96de3a7863e679bf520c198851da3ef841586a6f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 7 Mar 2009 22:20:48 -0400 Subject: [PATCH] A tiny bit of refactoring --- magit.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/magit.el b/magit.el index 58158c15..62ea07f2 100644 --- a/magit.el +++ b/magit.el @@ -2003,10 +2003,9 @@ in log buffer." (not (null (magit-get-svn-branch-name)))) (defun magit-get-svn-branch-name () - (or (find "git-svn" (magit-list-interesting-revisions) - :test 'equal) - (find "trunk" (magit-list-interesting-revisions) - :test 'equal))) + (let ((interesting-revisions (magit-list-interesting-revisions))) + (or (find "git-svn" interesting-revisions :test 'equal) + (find "trunk" interesting-revisions :test 'equal)))) ;;; Resetting