Allow limit to be configurable when displaying commit branches and tags
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=20851)
</details>
<!--IssueSummary end-->
### Description
Allow the limit to be configurable when displaying commit branches and tags. The current hard limit is 1000.
### Use Case
We use the tags for support reasons, each time we build we tag that revision with build information, after a few years there are a lot of tags which we don't want to lose the information from.
### Links / references
Customer ticket -> https://gitlab.zendesk.com/agent/tickets/89980 (internal only)
issue