mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
style<WorkingCopyChanges>: code style
This commit is contained in:
parent
da7f824508
commit
8a2a0e57d6
1 changed files with 10 additions and 11 deletions
|
@ -514,6 +514,14 @@ namespace SourceGit.Views.Widgets {
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var history = new MenuItem();
|
||||||
|
history.Header = App.Text("FileHistory");
|
||||||
|
history.Click += (o, e) => {
|
||||||
|
var viewer = new Views.Histories(repo, change.Path);
|
||||||
|
viewer.Show();
|
||||||
|
e.Handled = true;
|
||||||
|
};
|
||||||
|
|
||||||
menu.Items.Add(explore);
|
menu.Items.Add(explore);
|
||||||
menu.Items.Add(new Separator());
|
menu.Items.Add(new Separator());
|
||||||
menu.Items.Add(stage);
|
menu.Items.Add(stage);
|
||||||
|
@ -521,17 +529,8 @@ namespace SourceGit.Views.Widgets {
|
||||||
menu.Items.Add(stash);
|
menu.Items.Add(stash);
|
||||||
menu.Items.Add(patch);
|
menu.Items.Add(patch);
|
||||||
menu.Items.Add(new Separator());
|
menu.Items.Add(new Separator());
|
||||||
if (change != null) {
|
menu.Items.Add(history);
|
||||||
var history = new MenuItem();
|
menu.Items.Add(new Separator());
|
||||||
history.Header = App.Text("FileHistory");
|
|
||||||
history.Click += (o, e) => {
|
|
||||||
var viewer = new Views.Histories(repo, change.Path);
|
|
||||||
viewer.Show();
|
|
||||||
e.Handled = true;
|
|
||||||
};
|
|
||||||
menu.Items.Add(history);
|
|
||||||
menu.Items.Add(new Separator());
|
|
||||||
}
|
|
||||||
menu.Items.Add(copyPath);
|
menu.Items.Add(copyPath);
|
||||||
} else {
|
} else {
|
||||||
var stage = new MenuItem();
|
var stage = new MenuItem();
|
||||||
|
|
Loading…
Reference in a new issue