cleanup<*>: run vs code cleanup to format codestyle and remove unused references

This commit is contained in:
leo 2021-08-05 15:54:00 +08:00
parent 37559b60d4
commit 2cf7192ec4
41 changed files with 77 additions and 89 deletions

View file

@ -7,7 +7,7 @@ namespace SourceGit.Views.Popups {
/// 应用补丁
/// </summary>
public partial class Apply : Controls.PopupWidget {
private string repo = null;
private string repo = null;
public string File { get; set; }
public Apply(string repo) {

View file

@ -7,7 +7,7 @@ namespace SourceGit.Views.Popups {
/// </summary>
public partial class Fetch : Controls.PopupWidget {
private string repo = null;
public Fetch(Models.Repository repo, string preferRemote) {
this.repo = repo.Path;
InitializeComponent();

View file

@ -22,7 +22,7 @@ namespace SourceGit.Views.Popups {
name = branch.Substring(repo.GitFlow.Feature.Length);
break;
case Models.GitFlowBranchType.Release:
txtPrefix.Text = App.Text("GitFlow.Release");
txtPrefix.Text = App.Text("GitFlow.Release");
name = branch.Substring(repo.GitFlow.Release.Length);
break;
case Models.GitFlowBranchType.Hotfix:

View file

@ -39,11 +39,11 @@ namespace SourceGit.Views.Popups {
return Task.Run(() => {
Models.Watcher.SetEnabled(repo.Path, false);
var succ = new Commands.Push(
repo.Path,
localBranch.Name,
remoteBranch.Remote,
remoteBranch.Name.Replace(" (new)", ""),
withTags,
repo.Path,
localBranch.Name,
remoteBranch.Remote,
remoteBranch.Name.Replace(" (new)", ""),
withTags,
force,
track,
UpdateProgress).Exec();

View file

@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
namespace SourceGit.Views.Popups {