From 51d820e22a4517dbb06d38a4f07f7c48522ef811 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 5 Jun 2023 03:25:53 +0200 Subject: Initial commit --- LibGit/Interfaces/IRepoSource.cs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 LibGit/Interfaces/IRepoSource.cs (limited to 'LibGit/Interfaces') diff --git a/LibGit/Interfaces/IRepoSource.cs b/LibGit/Interfaces/IRepoSource.cs new file mode 100644 index 0000000..e276f60 --- /dev/null +++ b/LibGit/Interfaces/IRepoSource.cs @@ -0,0 +1,9 @@ +namespace LibGit.Interfaces; + +public interface IRepoSource +{ + public string BasePath { get; set; } + public Task GetFileStream(string path); + + public Task GetObjectStreamById(string objectId) => GetFileStream(Path.Join("objects", objectId[..2], objectId[2..])); +} \ No newline at end of file -- cgit 1.5.1