verify = 1;
continue;
}
- if (!strcmp(arg, "--abbrev") ||
- !strncmp(arg, "--abbrev=", 9)) {
+ if (!strcmp(arg, "--short") ||
+ !strncmp(arg, "--short=", 9)) {
filter &= ~(DO_FLAGS|DO_NOREV);
verify = 1;
abbrev = DEFAULT_ABBREV;
}
if (verify)
die("Needed a single revision");
- if (lstat(arg, &st) < 0)
+ if ((filter & DO_REVS) &&
+ (filter & DO_NONFLAGS) && /* !def && */
+ lstat(arg, &st) < 0)
die("'%s': %s", arg, strerror(errno));
as_is = 1;
show_file(arg);