Hacker News new | past | comments | ask | show | jobs | submit login

One thing I hated about magit was that I couldn't stage multiple files with a region or similar. I'm currently on my phone for the rest of the evening so I won't have chance to check - if you notice this has arrived in your testing, do let me know!

I usually use shell emulator + company for dir/file autocomplete. This is the fastest I've got to staging individuals files or dirs, especially with projects that have a dir depth bigger than 1.




In magit-status-mode I'm able to stage files based on the region.

I can also expand them and highlight multiple chunks to stage just those chunks.

The are only two major things I don't know how to do with the current stable version of Magit (1.4). One is starting an interactive rebase. It can take you through the commits and let you edit the buffer, but I haven't figured out if it's possible to start an interactive rebase without using the "!" command line.

The other thing is checking out files in order to revert them, I'm sure there's a way but using "!" and pasting the file names in still seems fastest.

I've also been wondering if it's possible to write a command to manage the `--skip-worktree` status of files, showing which are currently skipped in magit-status-mode. That would be a useful thing for me to have.


I wrote this gist that adds the ability to add multiple files from dired to git

https://gist.github.com/justinhj/5945047


> stage multiple files with a region or similar

This feature has been available for some time, I believe. In magit-status, just select with region the files and then `s` to stage the highlighted files.


It's a little un-intuitive.

Adding git-gutter to the mix will allow staging / reverting at the hunk level.

I should probably note also that in Magit status, the user has to TAB the unstaged file to be able to do region or hunk level staging.

Ideally it would be possible to do it in the buffer in question as well.

Not even git-gutter has region style staging. Hopefully it will be implemented soon. I had a crack at it but time got away from me.


Thank you for this - git-gutter looks awesome. I wasn't aware of staging hunks too so I've learned about 2 things :)




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: