48165dcc2053efc4da881cc55a44f33eb08126f9 kuhn Tue Dec 11 17:17:49 2012 -0800 added script for finding last commit on a file diff --git src/utils/qa/showLastGit.csh src/utils/qa/showLastGit.csh new file mode 100755 index 0000000..9693ad4 --- /dev/null +++ src/utils/qa/showLastGit.csh @@ -0,0 +1,25 @@ +#!/bin/tcsh + +################################ +# +# 01-17-2012 +# Robert Kuhn +# +# see the last change made in a git-repo'd file +# +################################ + + +if ( $#argv != 1 ) then + echo + echo " shows the diff for the last git checkin for a file" + echo " usage: gitFindLast.csh filename" + echo + exit +else + set file=$argv[1] +endif + +set hash=`git log -1 $file | grep commit | awk '{print $2}'` +git show $hash $file +