Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit b5256bc

Browse files
committed
Add note about DetectRenamesInWorkDir option
1 parent 2f61aeb commit b5256bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/UnitTests/GitHub.App/Services/PullRequestServiceTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ public async Task RenamedInWorkingDirFile_False()
218218
repo.Commit("foo", Author, Author);
219219
File.Move(file, renamedFile);
220220

221+
// NOTE: `RetrieveStatus(new StatusOptions { DetectRenamesInWorkDir = true })` would need to be used
222+
// for renamed files to appear as `RenamedInWorkingDir` rather than `Missing` and `Untracked`.
223+
// This isn't required in the current implementation.
221224
var isClean = await service.IsWorkingDirectoryClean(repositoryModel).FirstAsync();
222225

223226
Assert.False(isClean);

0 commit comments

Comments
 (0)