Michael Olson <[EMAIL PROTECTED]> writes:

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

You do a partial commit from a status buffer by marking the files you
want to commit. The dvc-status-mode post commit action would check for
marked files; if there are some, delete just those from the ewoc.
Otherwise, delete all from the ewoc.

This assumes the user does not change the list of marked files between
while the commit is running.

-- 
-- Stephe


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

Reply via email to