Analyze git commit history
- Specify the number of commits to analyze (default: 2)
- Execute the analysis command:
git diff HEAD~[N] HEAD -- . ':(exclude)*.lock' | cat
- EXTREMELY IMPORTANT: Use single quotes for pattern matching (eg.
git diff HEAD~2 HEAD -- . ':(exclude)*.lock' | cat
) - DO NOT OUTPUT pathspec patterns WITHOUT single quotes (eg.
git diff HEAD~2 HEAD -- . :(exclude)*.lock | cat
) - Exclude lock files from analysis
Prompt: Review the last 3 commits for code quality improvements Command:
git diff HEAD~3 HEAD -- . ':(exclude)*.lock' | cat
Prompt: Analyze the last 5 commits for potential bug sources Command:
git diff HEAD~5 HEAD -- . ':(exclude)*.lock' | cat
Prompt: Provide an overview of recent code changes Command:
git diff HEAD~2 HEAD -- . ':(exclude)*.lock' | cat