diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-06-05 03:25:53 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-06-05 03:25:53 +0200 |
commit | 51d820e22a4517dbb06d38a4f07f7c48522ef811 (patch) | |
tree | 4a7749cf77223dff2414fd4b73cb17df43d7449e /LibGit/Interfaces/IRepoSource.cs | |
download | GitTools-51d820e22a4517dbb06d38a4f07f7c48522ef811.tar.xz |
Diffstat (limited to 'LibGit/Interfaces/IRepoSource.cs')
-rw-r--r-- | LibGit/Interfaces/IRepoSource.cs | 9 |
1 files changed, 9 insertions, 0 deletions
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<Stream> GetFileStream(string path); + + public Task<Stream> GetObjectStreamById(string objectId) => GetFileStream(Path.Join("objects", objectId[..2], objectId[2..])); +} \ No newline at end of file |