#!/bin/bash
local ORIGINAL CHANGED FILES 
ORIGINAL="$1"
 CHANGED="$2"
 
    FILES=$(git diff --name-status $ORIGINAL..$CHANGED public/ | awk '{print $1"@@@@@"$2}')
    for FILE in $FILES
    do
            echo "$FILE" | awk -F "@@@@@" '{ i=""; if ($1 != "D") print $2}'
    done


syntax highlighted by Code2HTML, v. 0.9.1