3 using System.Collections.Generic;
11 public void Checkout(
LibGit2Sharp.IRepository libGit2Repo, CheckoutOptions checkoutOptions,
string commitish)
12 => Commands.
Checkout(libGit2Repo, commitish, checkoutOptions);
17 IEnumerable<string> refSpecs,
19 FetchOptions fetchOptions,
22 if (libGit2Repo == null)
23 throw new ArgumentNullException(nameof(libGit2Repo));
25 if (!(libGit2Repo is
LibGit2Sharp.Repository concreteRepo))
26 throw new ArgumentException(
"libGit2Repo must be an instance of LibGit2Sharp.Repository!", nameof(libGit2Repo));
29 throw new ArgumentNullException(nameof(remote));
31 Commands.Fetch(concreteRepo, remote.Name, refSpecs, fetchOptions, logMessage);
void Checkout(LibGit2Sharp.IRepository repository, CheckoutOptions checkoutOptions, string commitish)
Runs a blocking checkout operation on a given repository .
Use server authentication
void Fetch(LibGit2Sharp.IRepository libGit2Repo, IEnumerable< string > refSpecs, Remote remote, FetchOptions fetchOptions, string logMessage)
Runs a blocking fetch operation on a given repository .
For low level interactions with a LibGit2Sharp.IRepository.