It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Git: Non contiguous selection when staging selected lines

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

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

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.

Thanks for explanation and workaround. Any plans for improvement ?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Feedback & Announcements

Atlassian Authors Awards

We created the Atlassian Authors program in 2019 to give more Community members the permissions to write Articles, along with the inspiration and tools to help them succeed. Since then, the program...

295 views 13 17
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you