Git Integration - Is there a way commit single line of code from a multi-line diff change.


I have the following diff  in code, which represents two separate changes:

  • comment out two existing unused methods
  • Add a new method. 

I want to be able to include these separately into two commits.  If I highlight only the one line adding the new method, and select "Include Only These Lines Into Commit", I expect that ONLY the highlighted line is included.  Instead, the entire chunk is included.  I'm guessing this is just the way it works. 

Is there any way to accomplish what I am asking?  Thanks. 


Comment actions Permalink

Currently it is not possible
Please feel free to vote for a similar feature request:

Comment actions Permalink

Thank you. Voted. 


Please sign in to leave a comment.