public UnstagedChangesMenu(Repository repository) { Verify.Argument.IsNotNull(repository, nameof(repository)); Repository = repository; Items.Add(GuiItemFactory.GetStashSaveKeepIndexItem <ToolStripMenuItem>(repository)); if (repository.Status.UnmergedCount != 0) { Items.Add(new ToolStripSeparator()); Items.Add(GuiItemFactory.GetResolveConflictsItem <ToolStripMenuItem>(repository)); } Items.Add(new ToolStripSeparator()); Items.Add(GuiItemFactory.GetStageAllItem <ToolStripMenuItem>(repository, Resources.StrStageAll)); Items.Add(GuiItemFactory.GetUpdateItem <ToolStripMenuItem>(repository, Resources.StrUpdate)); Items.Add(GuiItemFactory.GetManualStageItem <ToolStripMenuItem>(repository, Resources.StrManualStage.AddEllipsis())); Items.Add(new ToolStripSeparator()); Items.Add(GuiItemFactory.GetCleanItem <ToolStripMenuItem>(repository)); Items.Add(GuiItemFactory.GetResetItem <ToolStripMenuItem>(repository, ResetMode.Mixed | ResetMode.Hard)); }