MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / isGitRepository

Function isGitRepository

desktop/project-git/project-state.ts:57–64  ·  view source on GitHub ↗
(projectId: string)

Source from the content-addressed store, hash-verified

55}
56
57export async function isGitRepository(projectId: string) {
58 try {
59 const { stdout } = await runGit(projectId, ['rev-parse', '--is-inside-work-tree'])
60 return stdout.trim() === 'true'
61 } catch {
62 return false
63 }
64}
65
66async function getStatusSummary(projectId: string) {
67 try {

Callers 12

scanKnownProjectsFunction · 0.90
listProjectCommitsFunction · 0.90
loadProjectDiffFunction · 0.90
loadProjectDiffStatsFunction · 0.90
initializeProjectGitFunction · 0.90
setProjectOriginFunction · 0.90
loadProjectGitStateFunction · 0.85

Calls 1

runGitFunction · 0.90

Tested by

no test coverage detected