Reduce scope of variables

Based on TortoiseSVN revision 25239

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Don't assign NULL to an iterator

Based on TortoiseSVN revision 25237

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Remove duplicate includes

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Constify methods

Based on TortoiseSVN 25243

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Do not run finish rebase routines more than once

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Rebase Dialog: Prompt user to select if branch or upstream combo box is empty

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Prefer local branch name to hash as upstream to pass to Rebase Dialog

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Fixed issue #2121: Sync Dialog Fetch and Rebase fails due to no branch selection

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
If user attempts to create branch with same name as current branch, tell him to use reset command

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Fix compile error in Release configuration

Regression of 84ced4a0b69a84bf77d0cf3f3d293a6c33df126e.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Rebase: Reduce unnecessary switches to branch / commit

When moving branch head,
if it is not current branch, force create the branch to target revision instead of checkout and reset.
If it is current branch, force checkout the branch to target revision and hard reset.

Especially, it no longer switch to original commit of target branch at the beginning and end of rebase. It was redundant.

This reduces touching working directory files and performs faster.

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Restore current branch when rebase abort

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Add reverse branch/upstream button in Rebase Dialog

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Fixed issue #2114: Allow to swap rebase refs

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Updated libgit 1.9.0

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Rename CChooseVersion::Init() as CChooseVersion::InitChooseVersion()

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Fixed issue #2076: Issue Tracker Integration is broken in 1.8.7.0

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Simplify code

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Fix "menurebase.ico" in order to display properly in Settings dialog

(fixes issue #2124)

Signed-off-by: Ricardo Alexandre Vieira <vierinha@gmail.com>
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Update "Push.ico" to look more similar to Pull and Commit icons

Signed-off-by: Ricardo Alexandre Vieira <vierinha@gmail.com>