Пример #1
0
        public StagedChangesMenu(Repository repository)
        {
            Verify.Argument.IsNotNull(repository, "repository");

            _repository = repository;

            Items.Add(GuiItemFactory.GetCommitItem <ToolStripMenuItem>(repository));
            Items.Add(GuiItemFactory.GetStashSaveItem <ToolStripMenuItem>(repository));

            Items.Add(new ToolStripSeparator());

            Items.Add(GuiItemFactory.GetUnstageAllItem <ToolStripMenuItem>(repository));
            Items.Add(GuiItemFactory.GetResetItem <ToolStripMenuItem>(repository, ResetMode.Mixed | ResetMode.Hard));
        }