summaryrefslogtreecommitdiff
path: root/post-commit.sh
blob: 01e755cc9a45a10460039f21d9b301c328a99888 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

added_files=`git log -1 --name-status --pretty="format:" | grep -E '^A' | \
  cut -f2`
modified_files=`git log -1 --name-status --pretty="format:" | grep -E '^M' | \
  cut -f2`
deleted_files=`git log -1 --name-status --pretty="format:" | grep -E '^D' | \
  cut -f2`