Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 0787040

Browse files
committed
use "git add --intent-to-add"
1 parent e98a46d commit 0787040

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/AddIns/VersionControl/GitAddIn/Src

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static Task AddAsync(string fileName)
5959
string wcRoot = FindWorkingCopyRoot(fileName);
6060
if (wcRoot == null)
6161
return Task.FromResult(false);
62-
return RunGitAsync(wcRoot, "add", AdaptFileName(wcRoot, fileName));
62+
return RunGitAsync(wcRoot, "add", "--intent-to-add", AdaptFileName(wcRoot, fileName));
6363
}
6464

6565
public static Task RemoveAsync(string fileName, bool indexOnly)

0 commit comments

Comments
 (0)