git-annex/CmdLine
Joey Hess 2743224658
change v6 git-annex add of staged unmodified unlocked file
v6: When a file is unlocked but has not been modified, and the unlocking is
only staged, git-annex add did not lock it. Now it will, for consistency
with how modified files are handled and with v5.

Note the removal of the sameInodeCache check. Otherwise it would see
that the unmodified file is unmodified and stop there. That check seems to have
been copied from the direct mode branch. But, direct mode had a specific
reason to check for unmodified content, that does not apply to v6.

The second pass means there is potential for a race, eg the unlocked
file could be modified in between the first and second passes.
No problem with that, since both passes do the same thing.

This commit was sponsored by Jake Vosloo on Patreon.
2018-09-12 14:00:05 -04:00
..
GitAnnex Added --accessedwithin matching option. 2018-08-01 15:34:03 -04:00
GitAnnexShell GIT_ANNEX_SHELL_APPENDONLY 2018-05-25 13:17:56 -04:00
Action.hs Fix bug introduced in version 6.20171018 that caused some commands to print out "ok" twice after processing a file. 2017-12-28 17:31:16 -04:00
Batch.hs make --batch honor matching options 2018-08-08 12:07:06 -04:00
GitAnnex.hs Added inprogress command for accessing files as they are being downloaded. 2017-12-28 11:46:39 -04:00
GitAnnexShell.hs GIT_ANNEX_SHELL_APPENDONLY 2018-05-25 13:17:56 -04:00
GitRemoteTorAnnex.hs move protocol version stuff to the Net free monad 2018-03-12 15:20:51 -04:00
GlobalSetter.hs mapM_ = sequence_ . map 2017-02-27 14:48:07 -04:00
Option.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
Seek.hs change v6 git-annex add of staged unmodified unlocked file 2018-09-12 14:00:05 -04:00
Usage.hs initial export command 2017-08-29 15:10:01 -04:00