v0.9
Changelog
Good Lord. There are two big new features in this release:
Revamped Line-by-line Staging
If you hit 'enter' on a file in the files panel you will now be able to stage lines individually with 'space' AND reset them with 'd' AND switch over to do the same with the staged changed by pressing 'tab'. You can select a range of lines by pressing 'v' and moving your cursor down then pressing 'space' to stage the range of lines, and you can select the whole hunk by pressing 'a'.
Patch Madness
I am yet to think of a better name, bear with me. This feature allows you to
- select snippets of code from old commits to discard e.g.
console.log
orbinding.pry
statements you accidentally added. - move code between old commits
- pull code from a commit out into your index (for when you accidentally committed something but want to keep working on it)
I'll write some proper documentation for it soon, but for now all you need to know is that if you hit 'space' on a file in a commit (accessed by pressing enter on the commit itself) it will add that file's patch to your 'custom patch' and if you hit 'enter' on the file it will allow you to take a line-by-line approach. Then hit ctrl+p to bring up the patch options menu and you'll be able to pick between:
- discarding the contents of the patch from the original commit
- pulling out the contents of the patch into your index
- moving the contents to another commit (if you've selected another commit in the commits panel)