checkCanAppendJournalFile jl ru file >>= \case
Just appendable -> ifM (annexAlwaysCompact <$> Annex.getGitConfig)
( do
- oldc <- getToChange ru file
+ oldc <- getToChange jl ru file
case f oldc of
Change newc -> set jl ru file newc
Append toappend -> append jl file appendable toappend
Append toappend -> append jl file appendable toappend
)
Nothing -> do
- oldc <- getToChange ru file
+ oldc <- getToChange jl ru file
case f oldc of
Change newc -> set jl ru file newc
-- Journal file does not exist yet, so