MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / isFileExcludedFromDiff

Function isFileExcludedFromDiff

src/utils/git.ts:96–104  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

94};
95
96const isFileExcludedFromDiff = (file: string) =>
97 file.includes('.lock') ||
98 file.includes('-lock.') ||
99 file.includes('.svg') ||
100 file.includes('.png') ||
101 file.includes('.jpg') ||
102 file.includes('.jpeg') ||
103 file.includes('.webp') ||
104 file.includes('.gif');
105
106export const getDiff = async ({ files }: { files: string[] }) => {
107 const gitDir = await getGitDir();

Callers 1

getDiffFunction · 0.70

Calls 1

includesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…