public static string ToModeString(this LibGit2Sharp.Mode mode) { var modeString = Convert.ToString((int)mode, 8); while (modeString.Length < 6) { modeString = "0" + modeString; } return(modeString); }
public static ApplicableChange Update(string path, Mode mode = Mode.NonExecutableFile) { return(new ApplicableChange { Type = ChangeType.Update, GitPath = path, Mode = mode }); }
public static string ToModeString(this LibGit2Sharp.Mode mode) { return(Convert.ToString((int)mode, 8).PadLeft(6, '0')); }
public static ApplicableChange Update(string path, Mode mode = Mode.NonExecutableFile) { return new ApplicableChange { Type = ChangeType.Update, GitPath = path, Mode = mode }; }