summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 30ca4ca)
raw | patch | inline | side by side (parent: 30ca4ca)
author | Michael J Gruber <git@drmicha.warpmail.net> | |
Wed, 5 Aug 2009 07:59:19 +0000 (09:59 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 5 Aug 2009 17:28:05 +0000 (10:28 -0700) |
Make sure that usage strings and documentation coincide with each other
and with the actual code.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
and with the actual code.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
index 767486c770afd385d118ee5f9a6f9cd3ad0a2d73..00e400353c5bfe1d6f4a75b5bf2dee9d7eca21bc 100644 (file)
SYNOPSIS
--------
-'git merge-base' [--all] <commit> <commit>...
+'git merge-base' [-a|--all] <commit> <commit>...
DESCRIPTION
-----------
-'git-merge-base' finds best common ancestor(s) between two commits to use
+'git merge-base' finds best common ancestor(s) between two commits to use
in a three-way merge. One common ancestor is 'better' than another common
ancestor if the latter is an ancestor of the former. A common ancestor
that does not have any better common ancestor is a 'best common
OPTIONS
-------
+-a::
--all::
Output all merge bases for the commits, instead of just one.
index 89ec5364ecd447f6a7836d9c7f582dbd1d864807..2c78c25713c108502b45bdf8d512efe22698a584 100644 (file)
SYNOPSIS
--------
[verse]
-'git show-branch' [--all] [--remotes] [--topo-order | --date-order]
- [--current] [--color | --no-color]
+'git show-branch' [-a|--all] [-r|--remotes] [--topo-order | --date-order]
+ [--current] [--color | --no-color] [--sparse]
[--more=<n> | --list | --independent | --merge-base]
[--no-name | --sha1-name] [--topics]
[<rev> | <glob>]...
+
'git show-branch' (-g|--reflog)[=<n>[,<base>]] [--list] [<ref>]
DESCRIPTION
diff --git a/builtin-merge-base.c b/builtin-merge-base.c
index a6ec2f7ab76db27afbb63aacf3bba60b4e73b3f6..54e7ec22370ce63150ddc93ebe252bea09f5064a 100644 (file)
--- a/builtin-merge-base.c
+++ b/builtin-merge-base.c
}
static const char * const merge_base_usage[] = {
- "git merge-base [--all] <commit-id> <commit-id>...",
+ "git merge-base [-a|--all] <commit> <commit>...",
NULL
};
diff --git a/builtin-show-branch.c b/builtin-show-branch.c
index 01bea3b583b53f4930a1ab17d64b1b714f58099c..03bdea686321be4785ba9d4fe0de3fe92449fdab 100644 (file)
--- a/builtin-show-branch.c
+++ b/builtin-show-branch.c
#include "parse-options.h"
static const char* show_branch_usage[] = {
- "git show-branch [--sparse] [--current] [--all] [--remotes] [--topo-order] [--more=count | --list | --independent | --merge-base] [--topics] [--color] [<refs>...]",
- "--reflog[=n[,b]] [--list] [--color] <branch>",
+ "git show-branch [-a|--all] [-r|--remotes] [--topo-order | --date-order] [--current] [--color | --no-color] [--sparse] [--more=<n> | --list | --independent | --merge-base] [--no-name | --sha1-name] [--topics] [<rev> | <glob>]...",
+ "git show-branch (-g|--reflog)[=<n>[,<base>]] [--list] [<ref>]",
NULL
};