From 1ef007de77c1cc6c2ecca68fe047a6acf6f781e8 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sat, 17 Nov 2012 20:07:47 +0100 Subject: [PATCH] Minor cleanup Signed-off-by: Sven Strickroth --- src/TortoiseProc/AppUtils.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/TortoiseProc/AppUtils.cpp b/src/TortoiseProc/AppUtils.cpp index 6c53f72d6..d17df648b 100644 --- a/src/TortoiseProc/AppUtils.cpp +++ b/src/TortoiseProc/AppUtils.cpp @@ -2167,14 +2167,14 @@ bool CAppUtils::Fetch(CString remoteName, bool allowRebase, bool autoClose) { return TRUE; } - if (response == IDC_REBASE_POST_BUTTON) + else if (response == IDC_REBASE_POST_BUTTON) { CString cmd = _T("/command:log"); cmd += _T(" /path:\"") + g_Git.m_CurrentDir + _T("\""); RunTortoiseProc(cmd); return TRUE; } - if (response == IDC_REBASE_POST_BUTTON + 1) + else if (response == IDC_REBASE_POST_BUTTON + 1) { CString cmd, out, err; cmd.Format(_T("git.exe format-patch -o \"%s\" %s..%s"), @@ -2190,11 +2190,9 @@ bool CAppUtils::Fetch(CString remoteName, bool allowRebase, bool autoClose) CAppUtils::SendPatchMail(cmd,out); return TRUE; } - - if (response == IDC_REBASE_POST_BUTTON + 2) + else if (response == IDC_REBASE_POST_BUTTON + 2) continue; - - if(response == IDCANCEL) + else if(response == IDCANCEL) return FALSE; } return TRUE; -- 2.11.4.GIT