... to ask for the usage string. Signed-off-by: Jonas Fonseca <fonseca@xxxxxxx> --- builtin-revert.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/builtin-revert.c b/builtin-revert.c index ea2f15b..7984aeb 100644 --- a/builtin-revert.c +++ b/builtin-revert.c @@ -61,6 +61,8 @@ static void parse_options(int argc, const char **argv) } arg = argv[argc - 1]; + if (!strcmp(arg, "-h")) + usage(usage_str); if (get_sha1(arg, sha1)) die ("Cannot find '%s'", arg); commit = (struct commit *)parse_object(sha1); -- 1.5.2.rc3.800.ga489e-dirty -- Jonas Fonseca - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html