In a status buffer, I'd like to delete all the ewoc entries after a commit, to show that all files are up-to-date.
To do that, we need some way for the :finished clause of <back-end>-dvc-log-edit-done to call a function that does the cleanup. The cleanup is major-mode specific, not back-end specific; it depends only on the ewoc. So I suggest adding a buffer-local variable dvc-post-commit-action in the status buffer. The status buffer major mode can set it to an appropriate action. Then the :finished clause of <back-end>-dvc-log-edit-done can switch back to the status buffer via dvc-partner-buffer, and call dvc-post-commit-action (if non-nil). Does that seem like the best way? -- -- Stephe _______________________________________________ Dvc-dev mailing list [email protected] https://mail.gna.org/listinfo/dvc-dev
