On Thu, Mar 19, 2015 at 6:10 PM, Abilio Marques <abili...@gmail.com> wrote:
> Really? didn't know that... I'm impressed by that. There've been times when
> I've needed it, then proceeded to stash, then stash apply, then modified,
> then committed, then stash popped and so on...
>
> Unless you mean that you do a git add, the modify the same file, and commit
> as is, without doing git add again... that way you can selectively commit a
> sub-set, but depends on the moment you did the adds. Never heard of
> selectivity.
>
> I know it could be off topic (does it?), but how would you do that? Do you
> have an example?

I actually do not know how to do it from the command line.

What I use is the "git gui" command (*), which is a light Tk interface
to essentially look at the workspace and the staging area, with a list
of files to the left, modified, new, deleted, and for modified files I
see the unified diff of my changes for the selected file.

I use that to go through all the changes, review them, and choose
which to place into the commit, whole file, chunks, parts of a chunk
(stage file, stage chunk, stage lines). How it does all this
underneath, i.e. which other git commands get used and how, that I do
not know.



(*) Note, "git gui" is not "gitk", although each can invoke the other,
as a separate process.

>
> On Thu, Mar 19, 2015 at 8:28 PM, Andreas Kupries <andre...@activestate.com>
> wrote:
>>
>> On Thu, Mar 19, 2015 at 5:14 PM, Richard Hipp <d...@sqlite.org> wrote:
>> > On 3/19/15, Abilio Marques <abili...@gmail.com> wrote:
>> >>
>> >>  Most of the friends I've shown fossil to love the idea of having SCM,
>> >> wiki
>> >> and tickets in the same, tiny place. Looks promising for them... but
>> >> then
>> >> they miss the git staging area.
>> >>
>> >
>> > Fossil does give you the ability to do a partial commit  (in case you
>> > are really want to commit changes that you have not tested).  Just
>> > list the subset of files you want to commit on the commit
>> > command-line:
>> >
>> >       fossil commit one.txt two.txt dir-three/
>> >
>> > If you include directories in the list, then all modified files
>> > underneath those directories are committed.
>> >
>> > Does the git staging area provide any capability beyond this?
>>
>>
>> AFAIK with git staging you can select specific changes in a single
>> file as well, to commit only a sub-set of changes in that file.
>>
>>
>> --
>> Andreas Kupries
>> Senior Tcl Developer
>> Code to Cloud: Smarter, Safer, Faster™
>> F: 778.786.1133
>> andre...@activestate.com, http://www.activestate.com
>> Learn about Stackato for Private PaaS: http://www.activestate.com/stackato
>> _______________________________________________
>> 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
>



-- 
Andreas Kupries
Senior Tcl Developer
Code to Cloud: Smarter, Safer, Faster™
F: 778.786.1133
andre...@activestate.com, http://www.activestate.com
Learn about Stackato for Private PaaS: http://www.activestate.com/stackato
_______________________________________________
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