I use the stash as our SCM.
I want to get the commits in a specific branch.
I go through the REST API for stash.
My steps are: logon to stash --> get all of the branched for a specific repository ordered by Last modified --> take the branch name --> set the branch as the default branch --> get the commits in this branch.
But "set the branch as the default branch" this action is very dangerous.
I think if there were any other solution to get the commits in a specific branch in stash via REST API?