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

Function tagDeleteWith

packages/computer/src/git/refs.ts:170–178  ·  view source on GitHub ↗
(opts: TagDeleteWithDeps)

Source from the content-addressed store, hash-verified

168}
169
170export async function tagDeleteWith(opts: TagDeleteWithDeps): Promise<void> {
171 const dir = opts.dir ?? "/";
172 try {
173 await opts.git.deleteTag({ fs: opts.fs, dir, ref: opts.name });
174 } catch (cause) {
175 if (isNotARepositoryCause(cause)) throw new NotARepositoryError(dir, { cause });
176 throw new GitError("ETAGFAIL", `git tag -d failed: ${errorMessage(cause)}`, { cause });
177 }
178}
179
180export interface GitTagListOptions {
181 dir?: string;

Callers 2

tagDeleteFunction · 0.85
refs.test.tsFile · 0.85

Calls 3

isNotARepositoryCauseFunction · 0.85
deleteTagMethod · 0.80
errorMessageFunction · 0.70

Tested by

no test coverage detected