Stephen Leake <[EMAIL PROTECTED]> writes:

> Matthieu Moy <[EMAIL PROTECTED]> writes:
>
>> I think we need to have these two ways to commit in DVC, but I also
>> don't think this is sufficient: it doesn't allow one to use the
>> git-add/git-commit (without -a) flow, 
>
> Ok, so there needs to be a third branch (a 'cond' instead of 'if').
>
> And a way for the DVC user interface to select that third branch.
>
> [snip]
>
> So what is the proposal for the DVC user interface for git partial
> commits, using the git-add/git-commit flow?

How about letting C-u C-c C-c from the log-edit buffer mean "Don't
commit everything -- just the files that the user has added themself."
No filenames would need to be passed to the commit command, and any
marks in the status buffer would not have any effect in this case.

git seems to be the only backend that can do a partial commit without
listing all the files on the "commit" command.  So for other backends,
doing C-u C-c C-c would just fall back to a normal commit.

If this is implemented, then I will agree that marking files, opening a
log-edit buffer, and C-c should commit just the marked files for git.
Otherwise, I will fight that change tooth and nail.

-- 
       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: pgpcMvmral71L.pgp
Description: PGP signature

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

Reply via email to