Exemple #1
0
        internal GitTreeViewItem(string statusLog, GitStatusType status)
        {
            Status     = status;
            StatusText = statusLog.Substring(0, 2);
            var fileName = statusLog.Substring(3);

            // git add の際にスペースがあるファイル名を''で囲んだ場合前後に""が表示される
            if (fileName.StartsWith("\""))
            {
                fileName = fileName.Substring(1, fileName.Length - 2);
            }
            displayName = fileName;
        }
Exemple #2
0
 internal GitTreeViewItem(GitStatusType status)
 {
     Status = status;
 }