Merge branch 'nd/apply-report-skip'
authorJunio C Hamano <gitster@pobox.com>
Fri, 8 Apr 2016 21:29:12 +0000 (14:29 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Apr 2016 21:29:12 +0000 (14:29 -0700)
"git apply -v" learned to report paths in the patch that were
skipped via --include/--exclude mechanism or being outside the
current working directory.

* nd/apply-report-skip:
apply: report patch skipping in verbose mode

builtin/apply.c
index 42c610e2ec180e789fdae4bc637dd96f533d1e10..c993333f9f6bd397d32c8cdc299100930a37de24 100644 (file)
@@ -4383,6 +4383,8 @@ static int apply_patch(int fd, const char *filename, int options)
                        listp = &patch->next;
                }
                else {
+                       if (apply_verbosely)
+                               say_patch_name(stderr, _("Skipped patch '%s'."), patch);
                        free_patch(patch);
                        skipped_patch++;
                }