On Fri, Mar 20, 2015 at 3:32 PM, Marcel Graf <graf.m.ml+sbf...@gmail.com> wrote: > > I was more thinking about a command line only version of stash/snapshot > --interactive asking for each file if i want it entirely or split and in > case of the latter, letting me select each chunk without the use of an > external gui (I vaguely remember mercurial's record extension doing > something like this). But might not be worth it and/or induce to many > options to stash ... >
To interactively select file-by-file which files to stash should be not hard. Selecting chunks of code with in a file is a lot more work, but still possible. Basically a variation on a non-gui, interactive merge. The input pair would be the edited file and its baseline. Then where a difference is detected, the tool shows the 2 versions of the differing block of lines, along with context, and prompts the user to choose which of the 2, then outputs the chosen variant to the output file. Then the content output file would be put in the stash. I've never seen a non-gui, interactive merge, so I don't know how feasible to create such a tool But, generically speaking, a selective stash operation would provide the edited file and its baseline to a configurable tool that would produce a third file that Fossil would then put the content thereof in the stash for the edited file.
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users