export --json: Fill in the file field
Like import was using ActionItemWorkTreeFile, it's ok to use it for export, even though it might not correspond with a file in the work tree. And renamed it to ActionItemTreeFile to make that clearer. Note that when an export has to rename files, it still uses ActionItemOther, so file will still be null in that case, but as no file is being transferred, that seems ok.
This commit is contained in:
parent
f87c63d998
commit
6481991208
10 changed files with 37 additions and 22 deletions
|
@ -69,7 +69,7 @@ start si (file, newkey) = ifAnnexed file go stop
|
|||
| otherwise = starting "rekey" ai si $
|
||||
perform file oldkey newkey
|
||||
|
||||
ai = ActionItemWorkTreeFile file
|
||||
ai = ActionItemTreeFile file
|
||||
|
||||
perform :: RawFilePath -> Key -> Key -> CommandPerform
|
||||
perform file oldkey newkey = do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue