Git: Non contiguous selection when staging selected lines

Oleg Detinin 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

0 votes
Answer accepted
MikeL 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 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 Leaders.
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 May 30, 2012

Thanks for explanation and workaround. Any plans for improvement ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events