The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Git: Non contiguous selection when staging selected lines

Oleg Detinin
Contributor
May 29, 2012

In Sourcetree (git repository) I'm not able to stage non contiguous lines.

Is it a git limitation or SourceTree ?

Thanks,

Oleg

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Deleted user
May 30, 2012

You should use smartGit for that. It has an Index Editor which lets you freely edit the index and working tree contents of files.

Oleg Detinin
Contributor
May 30, 2012

Thanks, Mike.

0 votes
stevestreeting
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 29, 2012

It's a SourceTree limitation, SourceTree needs to build a patch file in order to manipulate the diff on a line level, and non-contiguous line selections make that a lot less reliable. Instead of selecting 2 non-contiguous areas of the file though you can just select a single area at a time and stage that instead.

Oleg Detinin
Contributor
May 30, 2012

Thanks for explanation and workaround. Any plans for improvement ?

TAGS
AUG Leaders

Atlassian Community Events