Skip to content

Instantly share code, notes, and snippets.

@MisterBianco
MisterBianco / ci-code-change.sh
Created March 25, 2020 17:30
A simple command to check if any file with some filetypes were changed in the most recent commit in a specific directory.
git diff --name-only HEAD HEAD~1 | grep "^src/" | grep -E ".java$|.kt$|.go$|.py$|.yml$|.json$|Dockerfile$|.nim$"