1
0
Fork 0
mirror of https://git.ludikovsky.name/git/fugitive.git synced 2024-05-16 22:05:26 +02:00
fugitive/post-commit.sh
2010-08-02 13:49:17 +02:00

9 lines
277 B
Bash

#!/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`