mirror of
https://github.com/shumadrid/obsidian-git-changelog.git
synced 2026-07-22 12:20:31 +00:00
15 lines
378 B
TypeScript
15 lines
378 B
TypeScript
import type GitChangelogPlugin from 'main.ts';
|
|
|
|
export async function runCheckIgnore({
|
|
activeGitFile,
|
|
plugin
|
|
}: {
|
|
activeGitFile: string;
|
|
plugin: GitChangelogPlugin;
|
|
}): Promise<boolean> {
|
|
const gitCheckIgnoreResult = await plugin
|
|
.getGitPlugin()
|
|
.gitManager.git.checkIgnore(activeGitFile);
|
|
|
|
return !gitCheckIgnoreResult || gitCheckIgnoreResult.length > 0;
|
|
}
|