[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Commit only parts of files

From: Simon Large <simon.tortoisesvn_at_gmail.com>
Date: Wed, 6 Apr 2016 14:42:54 +0100

On 6 April 2016 at 13:26, Stefan Küng <tortoisesvn_at_gmail.com> wrote:

>
>
> On Wed, Apr 6, 2016 at 8:34 AM, fonitzu <no_spam_at_fonitzu.com> wrote:
>
>> On 05.04.2016 20:42, Stefan Küng wrote:
>> > On 05.04.2016 13:55, fonitzu wrote:
>> >> Hi,
>> >>
>> >> After digging for a while, I have found in tsvn's help at 4.4.3 that
>> >> using TortoiseMerge it is possible to "cherry picking" changes to be
>> >> included in a commit (in context of "Restore after commit").
>> >>
>> >> How about other differs?
>> >> I regularly use ExamDiff and I miss this feature, I always need to undo
>> >> all other unrelated changes in a file before committing.
>> >
>> > It doesn't matter which diff tool you use. If you activate "restore
>> > after commit", then you can edit the file with whatever tool you like
>> > and then commit. After the commit, the file is restored to what it was
>> > before, i.e. a new diff will show only those changes that were not
>> > committed before.
>> >
>>
>> I know about that.
>>
>> What I would like to have is a process like this:
>> - make a backup of the actual file (what actually "Restore after commit"
>> do),
>> - revert the file,
>>
>
> No, don't revert, but just...
>
>
>> - diff the (reverted) file against the backup (and save the changes
>> using the diff tool),
>>
>
> ... diff the changes. then in the diff tool, *undo* the changes you don't
> want to commit and then save.
>
>
>
>> - commit the file,
>> - restore the backup.
>>
>>
> the rest stays the same.
>
>
I think he understands the existing process fine. What he is asking for is
a variant of restore after commit in which you add in the lines that you do
want to commit instead of taking out the lines you don't want to commit.

Simon

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3168404

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2016-04-06 15:44:24 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.