title: Get commits of an item in one branch with TFS REST API
body: <p>I am trying to get the history for one particular item in one particular branch in my git repository, using the Team Service REST API (<a href="https://www.visualstudio.com/en-us/docs/integrate/api/git/commits" rel="nofollow">https://www.visualstudio.com/en-us/docs/integrate/api/git/commits</a>).</p>
  
  <p>I have this structure in my repository.</p>
  
  <p><code>Repository1
    -- Branch1 
         -- Item1
         -- Item2
    -- Branch2
         -- Item1
         -- Item3
  </code></p>
  
  <p>How can I get the commits for just Item1 in Branch1?</p>
  
  <p>I have tried to POST: <a href="https://fabrikam.visualstudio.com/DefaultCollection/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commitsBatch?api-version=1.0" rel="nofollow">https://fabrikam.visualstudio.com/DefaultCollection/_apis/git/repositories/278d5cd2-584d-4b63-824a-2ba458937249/commitsBatch?api-version=1.0</a> </p>
  
  <p>with JSON: </p>
  
  <p><code>{
     "itemVersion": {
       "versionType": "branch",
       "version": "Branch1"
     }
  }</code></p>
  
  <p>But this gives me the commits for the whole branch.  How can I get the commits for just that item in that particular branch?</p>