X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-add--interactive.perl;h=b0223c3419301132032fb67519a275e57707df22;hb=b8469ad0578d6b84ec92752a5f8df3ca5828af77;hp=da768ee7acc22e6480f0a067e109239561d43927;hpb=1b118da8bd1878d78589afd9f755b9d52a9579ad;p=git.git diff --git a/git-add--interactive.perl b/git-add--interactive.perl index da768ee7a..b0223c341 100755 --- a/git-add--interactive.perl +++ b/git-add--interactive.perl @@ -811,11 +811,16 @@ EOF } sub patch_update_cmd { - my @mods = grep { !($_->{BINARY}) } list_modified('file-only'); + my @all_mods = list_modified('file-only'); + my @mods = grep { !($_->{BINARY}) } @all_mods; my @them; if (!@mods) { - print STDERR "No changes.\n"; + if (@all_mods) { + print STDERR "Only binary files changed.\n"; + } else { + print STDERR "No changes.\n"; + } return 0; } if ($patch_mode) {