Git Ls-Remote (host-side)
az_git_ls_remoteQueries remote refs of a local repository without downloading objects, allowing quick verification of branch or tag existence (e.g., confirm releases/s116/rc-092 on origin) before fetching.
Instructions
在主機端查詢本機 repo 的遠端 refs(git ls-remote,不下載物件)。適合在 fetch 前快速確認遠端分支是否存在,例如確認 releases/s116/rc-092 存在於 origin。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | 只列 tag(--tags) | |
| heads | No | 只列分支(--heads) | |
| remote | No | 遠端名稱,預設 origin(只接受 remote 名稱,不接受 URL) | |
| pattern | No | ref 過濾,例如 "releases/s116/rc-092" | |
| timeout | No | 逾時秒數,預設 120 | |
| repoPath | Yes | 本機 repo 的「主機端」絕對路徑(例如 D:\mygithub\MS-Web) |