8000 Add some TODO reminders · MicrosoftWebMatrix/libgit2sharp@66cbcc0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 66cbcc0

Browse files
committed
Add some TODO reminders
1 parent de84cb3 commit 66cbcc0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

LibGit2Sharp/BranchCollection.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ IEnumerator IEnumerable.GetEnumerator()
6363
/// <returns></returns>
6464
public Branch Checkout(string name)
6565
{
66+
// TODO: Allow checkout of an arbitrary commit, thus putting HEAD in detached state.
6667
// TODO: This does not yet checkout (write) the working directory
6768
Ensure.ArgumentNotNullOrEmptyString(name, "name");
6869

LibGit2Sharp/Repository.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,13 @@ public static string Init(string path, bool isBare = false)
181181

182182
string nativePath = PosixPathHelper.ToNative(normalizedPath);
183183

184+
// TODO: To be removed once it's being dealt with by libgit2
184185
// libgit2 doesn't currently create the git config file, so create a minimal one if we can't find it
185186
// See https://github.com/libgit2/libgit2sharp/issues/56 for details
186187
string configFile = Path.Combine(nativePath, "config");
187188
if (!File.Exists(configFile))
188189
{
189-
File.WriteAllText(configFile,
190-
@"[core]
191-
repositoryformatversion = 0
192-
");
190+
File.WriteAllText(configFile, "[core]\n\trepositoryformatversion = 0\n");
193191
}
194192

195193
return nativePath;

0 commit comments

Comments
 (0)
0