Is there a way to git stash just specific hunks? It seems to always take all files.
It would be nice that if the user could just stash the staged items (or the unstaged items - your choice). Essentially using the index as the input to --patch.
+1 from me as well. TortoiseHG allows to shelve (the equivalent of stash for mercurial) hunks and lines and it's very convenient.
I know it is already possible to commit only hunks or lines, but I want to only stage working code. The scenario that I am dealing with is the following :
As you see, the important point is step 6 : I need to compile and run the exact code that I am checking in. This is not possible with hunk staging where you are staging something that is in practise not tested isolately.
+1. This would be very useful if you do a codechange unrelated to your current feature and want to keep it for later use.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.