How to get branch head commit using stash rest api
<p>I am having some problem with getting <code>HEAD</code> commit from a stash branch.I can get branch commits using following REST call.</p>

<pre><code>/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/commits?until={branch Name}
</code></pre>

<p>Also i can get HEAD commit in master using  <code>/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/commits/HEAD</code></p>

<p>like wise i would like to know that how can i get branch HEAD commit using Stash REST API.</p>