1

I want to stage a file or a hunk using vc-git (the vc system that comes with Emacs). How do I do this?

(To clarify, I made modifications on a file that is already (registered) in git. I would like to stage the new modifications made. How do I do this with vc-git?)

  • Have a look at vc-git-register, which does a little bit more -- the first argument needs to be in list form. If you want it to do less, then you may need to create a custom function. To see what makes it tick, you can use M-x find-function. – lawlist Nov 1 '17 at 19:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.