Example #1
0
        public static string ToModeString(this LibGit2Sharp.Mode mode)
        {
            var modeString = Convert.ToString((int)mode, 8);

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