Merge commit 'v1.7.2-rc0~6^2' into cc/cherry-pick-stdin
authorJunio C Hamano <gitster@pobox.com>
Tue, 29 Jun 2010 17:20:53 +0000 (10:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Jun 2010 17:22:55 +0000 (10:22 -0700)
* commit 'v1.7.2-rc0~6^2':
DWIM 'git show -5' to 'git show --do-walk -5'
Documentation/SubmittingPatches: Fix typo in GMail section
Documentation/config: describe status.submodulesummary

This commit fixes one test in t3508 by making "cherry-pick -<num>"
walk the history.

A test update from Elijah Newren is squashed as an evil merge.

Documentation/SubmittingPatches
Documentation/config.txt
revision.c
t/t3508-cherry-pick-many-commits.sh
index b9204c77d3b6070ec27b297cbd3e35d85f40e442..eb53e0636e3c3bab06e88ce3371945f5602c5756 100644 (file)
@@ -547,7 +547,7 @@ Gmail
 
 GMail does not appear to have any way to turn off line wrapping in the web
 interface, so this will mangle any emails that you send.  You can however
-use "git send e-mail" and send your patches through the GMail SMTP server, or
+use "git send-email" and send your patches through the GMail SMTP server, or
 use any IMAP email client to connect to the google IMAP server and forward
 the emails through that.
 
index 87f397ed962debf97c00b944a5f8e9207c3d5181..85f763c4d0dc6656a45fa876b453d2cb34a72cb3 100644 (file)
@@ -1699,6 +1699,13 @@ If this variable is not specified, it defaults to 'normal'.
 This variable can be overridden with the -u|--untracked-files option
 of linkgit:git-status[1] and linkgit:git-commit[1].
 
+status.submodulesummary::
+       Defaults to false.
+       If this is set to a non zero number or true (identical to -1 or an
+       unlimited number), the submodule summary will be enabled and a
+       summary of commits for modified submodules will be shown (see
+       --summary-limit option of linkgit:git-submodule[1]).
+
 tar.umask::
        This variable can be used to restrict the permission bits of
        tar archive entries.  The default is 0002, which turns off the
index f4b8b383153b2330be1729fa29488bab1848e019..7b881a83fd3bc03087fd53826a51d47d55a1d6b9 100644 (file)
@@ -1063,18 +1063,22 @@ static int handle_revision_opt(struct rev_info *revs, int argc, const char **arg
 
        if (!prefixcmp(arg, "--max-count=")) {
                revs->max_count = atoi(arg + 12);
+               revs->no_walk = 0;
        } else if (!prefixcmp(arg, "--skip=")) {
                revs->skip_count = atoi(arg + 7);
        } else if ((*arg == '-') && isdigit(arg[1])) {
        /* accept -<digit>, like traditional "head" */
                revs->max_count = atoi(arg + 1);
+               revs->no_walk = 0;
        } else if (!strcmp(arg, "-n")) {
                if (argc <= 1)
                        return error("-n requires an argument");
                revs->max_count = atoi(argv[1]);
+               revs->no_walk = 0;
                return 2;
        } else if (!prefixcmp(arg, "-n")) {
                revs->max_count = atoi(arg + 2);
+               revs->no_walk = 0;
        } else if (!prefixcmp(arg, "--max-age=")) {
                revs->max_age = atoi(arg + 10);
        } else if (!prefixcmp(arg, "--since=")) {
index 93d7189fbc3c1089fe729d8a144ea15d15e7de33..f90ed3da3e0cb93b63d32d8002dc6d9bd3596a65 100755 (executable)
@@ -82,7 +82,7 @@ test_expect_success 'revert fourth fourth~1 fourth~2 works' '
        git diff --quiet HEAD first
 '
 
-test_expect_failure 'cherry-pick -3 fourth works' '
+test_expect_success 'cherry-pick -3 fourth works' '
        git checkout -f master &&
        git reset --hard first &&
        test_tick &&