Пример #1
0
 public ActionResult FileContents(string path, string sha1)
 {
     var viewFile = new View_GitFileContents()
         {
             FilePath = path,
             Sha1 = sha1,
             Contents = nGit.open_Object(sha1).bytes().ascii()
         };
     return View("~/Views/GitUserData/FileContents.cshtml",viewFile);
 }
Пример #2
0
 public ActionResult FileContents(string path, string sha1)
 {
     var nGit = TM_UserData_Git.Current.NGit;
     var viewFile = new View_GitFileContents()
         {
             FilePath = path,
             Sha1 = sha1,
             Contents = nGit.open_Object(sha1).bytes().ascii()
         };
     return View(viewFile);
 }
Пример #3
0
        public ActionResult FileContents(string path, string sha1)
        {
            var viewFile = new View_GitFileContents()
            {
                FilePath = path,
                Sha1     = sha1,
                Contents = nGit.open_Object(sha1).bytes().ascii()
            };

            return(View("~/Views/GitUserData/FileContents.cshtml", viewFile));
        }
Пример #4
0
        public ActionResult FileContents(string path, string sha1)
        {
            var nGit     = TM_UserData_Git.Current.NGit;
            var viewFile = new View_GitFileContents()
            {
                FilePath = path,
                Sha1     = sha1,
                Contents = nGit.open_Object(sha1).bytes().ascii()
            };

            return(View(viewFile));
        }