Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save bonnak/2cff685a678d472c743f228777d91666 to your computer and use it in GitHub Desktop.

Select an option

Save bonnak/2cff685a678d472c743f228777d91666 to your computer and use it in GitHub Desktop.
#!/bin/bash
FILE_NAMES=$(git diff dev-next..dev --name-only)
for file_name in ${FILE_NAMES[@]}; do
not_shift_commit=$(git log --oneline --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(auto)%h (%ad) %d<%an> %s' --after="2021-12-26" --color=always -- $file_name | head -n 1 | grep -vi -E '<Shift>');
if [ ! -z "$not_shift_commit" ]; then
echo "${file_name}"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment