Shelve select files/hunks?

Sorry if this has been addressed elsewhere... my searches haven't turned up any info so far. Is it possible to shelve select files or hunks in SourceTree (instead of shelving all uncommitted changes)? Likewise, can you unshelve select items?

Thanks,
_Nik

6 answers

1 accepted

Accepted Answer
0 votes

No, Stash and Shelve are all-or-nothing operations at the moment, the hunk-level selection in shelve extensions tends to require a full terminal interface so we only expose the simpler mode right now.

Ok. It'd be a really nice feature to have, as I frequently want to shelve specific files and sometimes specific hunks.

Not to point to another app that does this, but TortoiseHg fairly recently brought this feature back (it was in 1.x and temporarily lost in 2.x). It's similar to how SourceTree lets you discard individual hunks now. During the commit, you can check/uncheck the hunks for files. You don't need to shelve/unshelve the hunks to handle incremental/cherry picked commits with such an interface.

Yes, I like the shelve tool that TortoiseHg provides.It'd be great to see something like it in SourceTree.

We have this on the roadmap for future versions, so I'll be working closely with Steve to get this working across the platforms.

Cheers

Any progress on this feature? I use this feature a lot in TortoiseHg. I'd really like to switch to SourceTree but I think for now I'll have to stick with TortoiseHg.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

985 views 2 3
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you