Skip to content

Instantly share code, notes, and snippets.

@metacoma
Created March 11, 2026 16:35
Show Gist options
  • Select an option

  • Save metacoma/67d4cd20cfcb6bed8416e87d8b124747 to your computer and use it in GitHub Desktop.

Select an option

Save metacoma/67d4cd20cfcb6bed8416e87d8b124747 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -eu
OUT="/tmp/info.txt"
DATE=$(date '+%F %T')
while read oldrev newrev refname
do
echo "=== $DATE ===" >> $OUT
echo "ref: $refname" >> $OUT
git diff --name-only "$oldrev" "$newrev" >> $OUT
echo >> $OUT
done
@metacoma
Copy link
Author

почему пропустило

$ git commit -m 'test' привет.txt
[main 87d78b7] test
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 "\320\277\321\200\320\270\320\262\320\265\321\202.txt"

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