title: Commit part of a file with command line git (for use with a script)
body: <p>Now before anyone says this is duplicated it is not.<br>
  Everyone else is asking as a person committing.</p>
  
  <p>In my case, I have to have a program commit certain lines of some files.</p>
  
  <p>I would rather not use <code>git add -p</code> and then have to parse output and do command line interaction via a program.</p>
  
  <p>Is there a way to just give a list of line numbers when making a commit?</p>
  
  <p>I know it has be done programmatically at least once because GitHub does it.</p>