Skip to content

Commit

Permalink
fix: ignore merge commits in git log
Browse files Browse the repository at this point in the history
  • Loading branch information
maxjeffos committed Sep 14, 2020
1 parent 2c11ac5 commit 5a1699a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/monitor/dev-count-analysis.ts
Expand Up @@ -146,7 +146,7 @@ export async function runGitLog(
fnShellout: (cmd: string, workingDirectory: string) => Promise<string>,
): Promise<string> {
try {
const gitLogCommand = `git --no-pager log --pretty=tformat:"%H${SERIOUS_DELIMITER}%an${SERIOUS_DELIMITER}%ae${SERIOUS_DELIMITER}%aI" --after="${timestampEpochSecondsStartOfPeriod}"`;
const gitLogCommand = `git --no-pager log --no-merges --pretty=tformat:"%H${SERIOUS_DELIMITER}%an${SERIOUS_DELIMITER}%ae${SERIOUS_DELIMITER}%aI" --after="${timestampEpochSecondsStartOfPeriod}"`;
const gitLogStdout: string = await fnShellout(gitLogCommand, repoPath);
return gitLogStdout;
} catch {
Expand Down

0 comments on commit 5a1699a

Please sign in to comment.