On Thu, Jan 26, 2012 at 03:06:53PM -0500, Richard Hipp wrote: > On Thu, Jan 26, 2012 at 2:51 PM, Richard Hipp <d...@sqlite.org> wrote: > > > > > > > On Thu, Jan 26, 2012 at 2:36 PM, Remigiusz Modrzejewski < > > l...@maxnet.org.pl> wrote: > > > >> Hi, > >> > >> I've stumbled upon a description of something, that I missed once or > >> twice in Fossil: > >> > >> http://nuclearsquid.com/writings/git-add/ > >> > >> Nothing that great: an ability to commit only part of changes to a file. > >> > > > > > I'm of the old-fashioned opinion that you ought to test your code before > > you check it in. > > > > The --interactive option is not really appropriate for the "commit" > command, for the reason cited above. But I can see an --interactive option > being useful for the "stash apply" command, so that you could selectively > pull parts of a stash into your working copy. I can also see it being > useful on "merge", especially when combined with --cherrypick. But not on > "commit"; the thought of adding --interactive to commit gives me shivers.
I quite agree. In fact, I consider the stash a kind of clipboard, where the changes are totally unlinked to the code tree. Committing, anywhere, means for me storing a full state of the tree, with a commit log describing peculiarities of that state, specially considering the previous states. When I've been usinc 'darcs', though, I consider I'm not writing a commit log for a state of the tree - I write a commit log for the diff, that can be quite unrelated to a state of the tree. In fact, most people I know use git as if it was darcs, describing more the diffs than the states of the tree in their logs. Although the git documentation states quite clear that each commit means a full state of the tree, and not a diff. To me, that highlight in the manual seems a bit a misguide, as the tool "rebase", and some other important git tools, look clearly built upon having commit logs describing diffs, and not tree states. As for fossil, we may not have a way to commit partial changes of a file, but we have a way to commit partial changes of the tree: commit specific files. Regards, Lluís. _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users