From: Junio C Hamano Date: Sat, 7 May 2005 08:11:00 +0000 (-0700) Subject: Fix usage string of git-diff-cache and add documentation of -m flag. X-Git-Tag: v0.99~603^2~24 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=651df67bbc41e8d0cb84f35aa541542bd6806825;p=git.git Fix usage string of git-diff-cache and add documentation of -m flag. Signed-off-by: Junio C Hamano --- diff --git a/Documentation/core-git.txt b/Documentation/core-git.txt index 8bd89319..014b9796 100644 --- a/Documentation/core-git.txt +++ b/Documentation/core-git.txt @@ -241,7 +241,7 @@ Converts old-style GIT repository to the latest. ################################################################ git-diff-cache - git-diff-cache [-p] [-r] [-z] [--cached] + git-diff-cache [-p] [-r] [-z] [-m] [--cached] Compares the content and mode of the blobs found via a tree object with the content of the current cache and, optionally ignoring the @@ -264,6 +264,13 @@ stat state of the file on disk. --cached do not consider the on-disk file at all +-m + + By default, files recorded in the index but not checked + out are reported as deleted. This flag makes + git-diff-cache say that all non-checked-out files are up + to date. + Output format: See "Output format from git-diff-cache, git-diff-tree and git-diff-files" diff --git a/diff-cache.c b/diff-cache.c index 7e87d28f..84527190 100644 --- a/diff-cache.c +++ b/diff-cache.c @@ -165,7 +165,7 @@ static void mark_merge_entries(void) } static char *diff_cache_usage = -"diff-cache [-r] [-z] [-p] [-i] [--cached] "; +"git-diff-cache [-p] [-r] [-z] [-m] [--cached] "; int main(int argc, char **argv) {