tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
LibGit2Commands.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3
4using LibGit2Sharp;
5
7{
10 {
12 public void Checkout(LibGit2Sharp.IRepository libGit2Repo, CheckoutOptions checkoutOptions, string commitish)
13 => Commands.Checkout(libGit2Repo, commitish, checkoutOptions);
14
16 public void Fetch(
17 LibGit2Sharp.IRepository libGit2Repo,
18 IEnumerable<string> refSpecs,
19 Remote remote,
20 FetchOptions fetchOptions,
21 string logMessage)
22 {
23 ArgumentNullException.ThrowIfNull(libGit2Repo);
24
25 ArgumentNullException.ThrowIfNull(remote);
26
27 Commands.Fetch((LibGit2Sharp.Repository)libGit2Repo, remote.Name, refSpecs, fetchOptions, logMessage);
28 }
29 }
30}
void Fetch(LibGit2Sharp.IRepository libGit2Repo, IEnumerable< string > refSpecs, Remote remote, FetchOptions fetchOptions, string logMessage)
Runs a blocking fetch operation on a given repository .
void Checkout(LibGit2Sharp.IRepository libGit2Repo, CheckoutOptions checkoutOptions, string commitish)
Runs a blocking checkout operation on a given repository .
For low level interactions with a LibGit2Sharp.IRepository.