Git 客户端,采用 C# 编写。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

52 lines
1.1 KiB

using System;
using System.Collections.Generic;
using System.Text;
using GitUIPluginInterfaces;
namespace GitCommands
{
public class GitSubmodule : IGitSubmodule
{
public string Name { get; set; }
public string RemotePath
{
get
{
return GitCommandHelpers.GetSubmoduleRemotePath(Name);
}
set
{
}
}
public string LocalPath
{
get
{
return GitCommandHelpers.GetSubmoduleLocalPath(Name);
}
set
{
}
}
public string CurrentCommitGuid { get; set; }
public string Branch { get; set; }
public bool Initialized { get; set; }
public bool UpToDate { get; set; }
public string Status
{
get
{
if (!Initialized)
return "Not initialized";
if (!UpToDate)
return "Modified";
return "Up-to-date";
}
}
}
}