public ActionResult History(Guid id, string encodedPath, string encodedName) { ViewBag.ID = id; ViewBag.ShowShortMessageOnly = true; var repo = RepositoryRepository.GetRepository(id); using (var browser = new RepositoryBrowser(Path.Combine(UserConfiguration.Current.Repositories, repo.Name))) { var path = PathEncoder.Decode(encodedPath); var name = PathEncoder.Decode(encodedName); string referenceName; var commits = browser.GetHistory(path, name, out referenceName); return(View(new RepositoryCommitsModel { Commits = commits, Name = repo.Name })); } }
public ActionResult History(string id, string encodedPath, string encodedName) { ViewBag.ID = id; if (!String.IsNullOrEmpty(id)) { using (var browser = new RepositoryBrowser(Path.Combine(UserConfiguration.Current.Repositories, id))) { var path = PathEncoder.Decode(encodedPath); var name = PathEncoder.Decode(encodedName); string referenceName; var commits = browser.GetHistory(path, name, out referenceName); return(View(new RepositoryCommitsModel { Commits = commits, Name = id })); } } return(View()); }
public ActionResult History(string id, string encodedPath, string encodedName) { ViewBag.ID = id; ViewBag.ShowShortMessageOnly = true; if (!String.IsNullOrEmpty(id)) { using (var browser = new RepositoryBrowser(Path.Combine(UserConfiguration.Current.Repositories, id))) { var path = PathEncoder.Decode(encodedPath); var name = PathEncoder.Decode(encodedName); string referenceName; var commits = browser.GetHistory(path, name, out referenceName); return View(new RepositoryCommitsModel { Commits = commits, Name = id }); } } return View(); }
public ActionResult History(Guid id, string encodedPath, string encodedName) { ViewBag.ID = id; ViewBag.ShowShortMessageOnly = true; var repo = RepositoryRepository.GetRepository(id); using (var browser = new RepositoryBrowser(Path.Combine(UserConfiguration.Current.Repositories, repo.Name))) { var path = PathEncoder.Decode(encodedPath); var name = PathEncoder.Decode(encodedName); string referenceName; var commits = browser.GetHistory(path, name, out referenceName); return View(new RepositoryCommitsModel { Commits = commits, Name = repo.Name, Logo = new RepositoryLogoDetailModel(repo.Logo) }); } }