MCPcopy Create free account
hub / github.com/cloudflare/computer / tagWith

Function tagWith

packages/computer/src/git/refs.ts:144–158  ·  view source on GitHub ↗
(opts: TagWithDeps)

Source from the content-addressed store, hash-verified

142}
143
144export async function tagWith(opts: TagWithDeps): Promise<void> {
145 const dir = opts.dir ?? "/";
146 try {
147 await opts.git.tag({
148 fs: opts.fs,
149 dir,
150 ref: opts.name,
151 object: opts.object,
152 force: opts.force,
153 });
154 } catch (cause) {
155 if (isNotARepositoryCause(cause)) throw new NotARepositoryError(dir, { cause });
156 throw new GitError("ETAGFAIL", `git tag failed: ${errorMessage(cause)}`, { cause });
157 }
158}
159
160export interface GitTagDeleteOptions {
161 dir?: string;

Callers 2

tagFunction · 0.85
refs.test.tsFile · 0.85

Calls 3

isNotARepositoryCauseFunction · 0.85
errorMessageFunction · 0.70
tagMethod · 0.65

Tested by

no test coverage detected