irmin icon indicating copy to clipboard operation
irmin copied to clipboard

return an aggregate value from Contents.merge

Open gregtatcam opened this issue 9 years ago • 1 comments

It would be nice to have an aggregate value returned from Contents.merge. For instance in IMAP application when two email databases are merged a mailbox statistics needs to be updated after the merge.

gregtatcam avatar Aug 05 '15 17:08 gregtatcam

An idea would be to pass an accumulator to the merge function. Not totally sure how to expose this though. Could be part of a larger context, where you'd want to expose more things that just the paths (as it is the case actually) -- other stuff could be the commits being merged, etc..

samoht avatar Aug 10 '15 14:08 samoht