Skip to content

Commit e13f63f

Browse files
committed
Update refs.md
Added mention of previously undocumented unmatched ref prefix returning an array of refs.
1 parent 9bfbbb1 commit e13f63f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/v3/git/refs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ title: Git Refs
1313
The `ref` in the URL must be formatted as `heads/branch`, not just `branch`. For example, the call to get the data for a branch named `skunkworkz/featureA` would be:
1414

1515
GET /repos/:owner/:repo/git/refs/heads/skunkworkz/featureA
16+
17+
If the `ref` doesn't exist in the repository, but existing refs start with `ref` they will be returned as an array.
1618

1719
### Response
1820

0 commit comments

Comments
 (0)