drh> Fossil allows you to commit a subset of files (by listing the
files on the "fossil commit" command line) but there is no mechanism
for committing a subset of lines within a single file.

That, and there _are_ branches/tags which are encouraged to be used...
my prev comment was for the case where a single file gets two-thoughts
worth of changes (subset of lines). For subsets of lines (assume we
want two logical commits), I head to my editor, tease out logical
section1 -> tmp file. fossil stash save -m "logical thought temp1"
./file-of-interest;
re-enter tmp.file -> file-of-interest; fossil ci -m "description of
logical thought" ./file-of-interest; fossil stash pop [edit if
necessary]; fossil ci -m "description of other logical thought"
./file-of-interest

If one is using feature branches though, you'll be prompted to save as
you switch between them, keeping your fossil repo up-to-date.

-bch


On 6/5/14, Richard Hipp <d...@sqlite.org> wrote:
> On Wed, Jun 4, 2014 at 11:08 PM, Alysson Gonçalves de Azevedo <
> agalys...@gmail.com> wrote:
>
>> I started to use fossil just today, but let me participate too :)
>>
>> Everyday I have a list of tasks that I have to work on and when I finish,
>> I like to separate the changes of each task by commit.
>>
>> To do that, I just open GUI, check the lines of the files that i want to
>> commit.
>> (Just like this print:
>> http://i1-linux.softpedia-static.com/screenshots/gitg_5.jpg, where I
>> click on the - and + to stage the line).
>>
>> But today, using fossil, I couldn't find anyway to do that, so I had to
>> put all the changes on the same commit.
>>
>
> Fossil allows you to commit a subset of files (by listing the files on the
> "fossil commit" command line) but there is no mechanism for committing a
> subset of lines within a single file.
>
>
>
>
>>
>> Well, in the theory I can work on one task at time and commit when I
>> finish, but in the practice I work on all the tasks at same time.
>>
>>
>>
>> Alysson Gonçalves de Azevedo
>>
>> "Anarcho-syndicalism is a way of preserving freedom." - Monty Python
>>
>>
>> 2014-06-04 21:14 GMT-03:00 Warren Young <war...@etr-usa.com>:
>>
>> On 6/4/2014 10:50, Richard Hipp wrote:
>>>
>>>>
>>>> The staging area complicates the interface.
>>>>
>>>
>>> Perhaps you will add some of this to the Fossil vs Git wiki page.
>>> (Section 3.4?)
>>>
>>> _______________________________________________
>>> fossil-users mailing list
>>> fossil-users@lists.fossil-scm.org
>>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>>
>>
>>
>> _______________________________________________
>> fossil-users mailing list
>> fossil-users@lists.fossil-scm.org
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
>>
>
>
> --
> D. Richard Hipp
> d...@sqlite.org
>
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to