Stephen Leake <[EMAIL PROTECTED]> writes:

> 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?

Hmm.  Would this work with partial commits, which don't necessarily
check in all of the files?

-- 
       Michael Olson -- FSF Associate Member #652     |
 http://mwolson.org/ -- Jabber: mwolson_at_hcoop.net  |  /` |\ | | |
            Sysadmin -- Hobbies: Lisp, GP2X, HCoop    | |_] | \| |_|
Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner |

Attachment: pgpOZoK3fT5TX.pgp
Description: PGP signature

_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev

Reply via email to