summary refs log tree commit diff
path: root/LibGit/Interfaces/IRepoSource.cs
blob: 2a29febff88ff3a77cc557155968468bf7297621 (plain) (blame)
1
2
3
4
5
6
7
8
9
namespace LibGit.Interfaces;

public interface IRepoSource
{
    public string BasePath { get; set; }
    public Task<bool> FileExists(string path);
    public Task<Stream> GetFileStream(string path);
    public Task<Stream> GetObjectStreamById(string objectId) => GetFileStream(Path.Join("objects", objectId[..2], objectId[2..]));
}