Doing the diff with a pathspec is a fine and fairly efficient way to do this (i.e. see if the file has been modified as part of this diff) so long as you don't care about tracking the file across renames.