Browse Source

use "git add --intent-to-add"

pull/505/merge
Daniel Grunwald 11 years ago
parent
commit
07870409a3
  1. 2
      src/AddIns/VersionControl/GitAddIn/Src/Git.cs

2
src/AddIns/VersionControl/GitAddIn/Src/Git.cs

@ -59,7 +59,7 @@ namespace ICSharpCode.GitAddIn
string wcRoot = FindWorkingCopyRoot(fileName); string wcRoot = FindWorkingCopyRoot(fileName);
if (wcRoot == null) if (wcRoot == null)
return Task.FromResult(false); return Task.FromResult(false);
return RunGitAsync(wcRoot, "add", AdaptFileName(wcRoot, fileName)); return RunGitAsync(wcRoot, "add", "--intent-to-add", AdaptFileName(wcRoot, fileName));
} }
public static Task RemoveAsync(string fileName, bool indexOnly) public static Task RemoveAsync(string fileName, bool indexOnly)

Loading…
Cancel
Save