summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-12-03 16:10:36 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-12-03 16:10:36 -0800
commit45a7b55d6fe69581d12b83f63337eaa1015b6717 (patch)
tree3d1911318c7fac20332867a64b3d13227524c636 /builtin
parentMerge branch 'sp/emfile' (diff)
parentdocs: clarify git diff modes of operation (diff)
downloadtgif-45a7b55d6fe69581d12b83f63337eaa1015b6717.tar.xz
Merge branch 'sn/diff-doc'
* sn/diff-doc: docs: clarify git diff modes of operation diff,difftool: Don't use the {0,2} notation in usage strings CodingGuidelines: Add a section on writing documentation
Diffstat (limited to 'builtin')
-rw-r--r--builtin/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/diff.c b/builtin/diff.c
index a43d326363..945e7583a8 100644
--- a/builtin/diff.c
+++ b/builtin/diff.c
@@ -22,7 +22,7 @@ struct blobinfo {
};
static const char builtin_diff_usage[] =
-"git diff <options> <rev>{0,2} -- <path>*";
+"git diff [<options>] [<commit> [<commit>]] [--] [<path>...]";
static void stuff_change(struct diff_options *opt,
unsigned old_mode, unsigned new_mode,