X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=inline;f=builtin-diff.c;h=a6590205e8f746304f3d06d3e328a05bf2bf954e;hb=4b22f634a3f1752d98e1fc5eee4fa7ce0efe157c;hp=1c535b1dd620ce40814da41bdddb8638cafeceb4;hpb=4c81c213a479e4aae0653a56ad6e8db5c31f019c;p=git.git diff --git a/builtin-diff.c b/builtin-diff.c index 1c535b1dd..a6590205e 100644 --- a/builtin-diff.c +++ b/builtin-diff.c @@ -137,7 +137,7 @@ static int builtin_diff_index(struct rev_info *revs, int cached = 0; while (1 < argc) { const char *arg = argv[1]; - if (!strcmp(arg, "--index") || !strcmp(arg, "--cached")) + if (!strcmp(arg, "--cached")) cached = 1; else usage(builtin_diff_usage);