MCPcopy
hub / github.com/di-sukharev/opencommit / trytm

Function trytm

out/cli.cjs:85731–85739  ·  view source on GitHub ↗
(promise)

Source from the content-addressed store, hash-verified

85729 const { stdout: gitDir } = await execa("git", [
85730 "rev-parse",
85731 "--show-toplevel"
85732 ]);
85733 return gitDir;
85734};
85735
85736// src/utils/trytm.ts
85737var trytm = async (promise) => {
85738 try {
85739 const data = await promise;
85740 return [data, null];
85741 } catch (throwable) {
85742 if (throwable instanceof Error) return [null, throwable];

Callers 1

commitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…