--- apply.c.orig 2012-05-01 22:50:38.000000000 -0600 +++ apply.c 2012-05-10 10:45:10.744088807 -0600 @@ -3631,8 +3631,12 @@ if (0 < prefix_length) { int pathlen = strlen(pathname); if (pathlen <= prefix_length || - memcmp(prefix, pathname, prefix_length)) + memcmp(prefix, pathname, prefix_length)) { + if (apply_verbosely) + error("path '%s' is outide of git repo '%s'", + pathname, prefix); return 0; + } } /* See if it matches any of exclude/include rule */