#include "cache.h"
#include "diff.h"
-static const char *show_diff_usage =
-"show-diff [-p] [-q] [-r] [-z] [paths...]";
+static const char *diff_files_usage =
+"diff-files [-p] [-q] [-r] [-z] [paths...]";
static int generate_patch = 0;
static int line_termination = '\n';
else if (!strcmp(argv[1], "-z"))
line_termination = 0;
else
- usage(show_diff_usage);
+ usage(diff_files_usage);
argv++; argc--;
}
}
}
-static const char *show_files_usage =
- "show-files [-z] (--[cached|deleted|others|stage|unmerged])* "
+static const char *ls_files_usage =
+ "ls-files [-z] (--[cached|deleted|others|stage|unmerged])* "
"[ --ignored [--exclude=<pattern>] [--exclude-from=<file>) ]";
int main(int argc, char **argv)
} else if (!strncmp(arg, "--exclude-from=", 15)) {
add_excludes_from_file(arg+15);
} else
- usage(show_files_usage);
+ usage(ls_files_usage);
}
if (show_ignored && !nr_excludes) {