Skip to content

Instantly share code, notes, and snippets.

@mesketh
Created April 20, 2026 07:54
Show Gist options
  • Select an option

  • Save mesketh/64ad80a4aeb26271e3bdaa0a02337ee5 to your computer and use it in GitHub Desktop.

Select an option

Save mesketh/64ad80a4aeb26271e3bdaa0a02337ee5 to your computer and use it in GitHub Desktop.
# Get files in the last commit, excluding those ending in .tmp or in the 'logs/' folder
FILES=
if [ -n "" ]; then
echo "Processing changes for: "
# Insert your custom logic here (e.g., triggering a build for non-ignored files)
fi
@mesketh

mesketh commented Apr 20, 2026

Copy link
Copy Markdown
Author

$(git diff-tree --no-commit-id --name-only -r HEAD | grep -vE '.tmp$|^logs/')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment