avoid duplicate add action for v6 unlocked modified file
The new second pass sees the file as type changed because the first pass's changes have typically not reached git yet. So, have to explicitly check for unmodified files in the second pass. Note that, if the file has been touched but not really modified, the first pass will handle it, and so the second pass does nothing. This commit was sponsored by Jochen Bartl on Patreon.
This commit is contained in:
parent
8b21761a42
commit
50217f62a1
2 changed files with 13 additions and 7 deletions
|
@ -70,7 +70,7 @@ seek o = allowConcurrentOutput $ do
|
|||
go (withFilesNotInGit (not $ includeDotFiles o))
|
||||
go withFilesMaybeModified
|
||||
ifM versionSupportsUnlockedPointers
|
||||
( go withUnlockedPointersToBeCommitted
|
||||
( go withUnmodifiedUnlockedPointers
|
||||
, unlessM isDirect $
|
||||
go withFilesOldUnlocked
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue