0

The diff command can be async, of course. Is there an easy way to run a function when the async or sync diff command finished running and the diff buffer's contents is ready?

I checked, but I saw no hook for this.

1 Answer 1

2

A quick look seems to indicate that the only way you can do it is by advising vc-diff-finish: it seems to be called after an async diff is done, so you should be able to piggyback whatever you want to do on it.

Untested.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.