Skip to content

Commit 2d199dd

Browse files
committed
Git rebase #48
1 parent 11fe5bf commit 2d199dd

File tree

5 files changed

+27
-0
lines changed

5 files changed

+27
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ You can change what happens when using the finish feature command:
5555
* `(G)it Sho(w) Changes` - Ctrl+Shift+Alt+G, W
5656
* `(G)it File (B)lame` - Ctrl+Shift+Alt+G, B
5757
* `(G)it File (D)iff` - Ctrl+Shift+Alt+G, D
58+
* `(G)it Rebase` - Ctrl+Shift+Alt+G, G
5859

5960
## Gitflow
6061
So what exactly are those [GitFlow](http://nvie.com/posts/a-successful-git-branching-model/) menu items doing?

TGit/Commands/MainMenuCommands.cs

+7
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public void AddCommands()
4040
CommandHelper.AddCommand(_mcs, BranchCommand, PkgCmdIDList.Branch);
4141
CommandHelper.AddCommand(_mcs, SwitchCommand, PkgCmdIDList.Switch);
4242
CommandHelper.AddCommand(_mcs, MergeCommand, PkgCmdIDList.Merge);
43+
CommandHelper.AddCommand(_mcs, RebaseCommand, PkgCmdIDList.Rebase);
4344

4445
CommandHelper.AddCommand(_mcs, RevertCommand, PkgCmdIDList.Revert);
4546
CommandHelper.AddCommand(_mcs, ResolveCommand, PkgCmdIDList.Resolve);
@@ -131,6 +132,12 @@ private void MergeCommand(object sender, EventArgs e)
131132
ProcessHelper.StartTortoiseGitProc(_envHelper, $"/command:merge /path:\"{_envHelper.GetSolutionDir()}\"");
132133
}
133134

135+
private void RebaseCommand(object sender, EventArgs e)
136+
{
137+
PreCommand();
138+
ProcessHelper.StartTortoiseGitProc(_envHelper, $"/command:rebase /path:\"{_envHelper.GetSolutionDir()}\"");
139+
}
140+
134141
private void AbortMergeCommand(object sender, EventArgs e)
135142
{
136143
PreCommand();

TGit/PkgCmdID.cs

+2
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,7 @@ static class PkgCmdIDList
6464
public const uint SvnDCommit = 0x143;
6565
public const uint SvnFetch = 0x144;
6666
public const uint SvnRebase = 0x145;
67+
68+
public const uint Rebase = 0x146;
6769
}
6870
}

TGit/TGIT.vsct

+11
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,14 @@
343343
</Strings>
344344
</Button>
345345

346+
<Button guid="guidTGitCmdSet" id="rebase" priority="0x0400" type="Button">
347+
<Parent guid="guidTGitCmdSet" id="fifthMenuGroup" />
348+
<Icon guid="guidImages" id="rebase" />
349+
<Strings>
350+
<ButtonText>Rebase...</ButtonText>
351+
</Strings>
352+
</Button>
353+
346354
<Button guid="guidTGitCmdSet" id="revert" priority="0x0100" type="Button">
347355
<Parent guid="guidTGitCmdSet" id="sixthMenuGroup" />
348356
<Icon guid="guidImages" id="revert" />
@@ -507,6 +515,7 @@
507515
<KeyBinding guid="guidTGitCmdSet" key1="G" key2="B" mod1="CONTROL SHIFT ALT" editor="guidVSStd97" id="blameContext" />
508516
<KeyBinding guid="guidTGitCmdSet" key1="G" key2="D" mod1="CONTROL SHIFT ALT" editor="guidVSStd97" id="diffContext" />
509517
<KeyBinding guid="guidTGitCmdSet" key1="G" key2="T" mod1="CONTROL SHIFT ALT" editor="guidVSStd97" id="tag" />
518+
<KeyBinding guid="guidTGitCmdSet" key1="G" key2="G" mod1="CONTROL SHIFT ALT" editor="guidVSStd97" id="rebase" />
510519
</KeyBindings>
511520

512521
<Symbols>
@@ -639,6 +648,8 @@
639648

640649
<IDSymbol name="tag" value="0x0141" />
641650
<IDSymbol name="abortMerge" value="0x0142" />
651+
652+
<IDSymbol name="rebase" value="0x0146" />
642653
</GuidSymbol>
643654
</Symbols>
644655
</CommandTable>

azure-pipelines.yml

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
pool:
77
vmImage: 'VS2017-Win2016'
88

9+
trigger:
10+
branches:
11+
include:
12+
- master
13+
# tags: none
14+
915
variables:
1016
patch: $[counter('versioncounter', 41)]
1117
solution: '**/*.sln'

0 commit comments

Comments
 (0)