Skip to content

Commit 65281b7

Browse files
committed
Merge commit 'v1.7.2-rc0~6^2' into cc/cherry-pick-stdin
* 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.
2 parents f873a27 + 5853cae commit 65281b7

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

Documentation/SubmittingPatches

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ Gmail
547547

548548
GMail does not appear to have any way to turn off line wrapping in the web
549549
interface, so this will mangle any emails that you send. You can however
550-
use "git send e-mail" and send your patches through the GMail SMTP server, or
550+
use "git send-email" and send your patches through the GMail SMTP server, or
551551
use any IMAP email client to connect to the google IMAP server and forward
552552
the emails through that.
553553

Documentation/config.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,6 +1699,13 @@ If this variable is not specified, it defaults to 'normal'.
16991699
This variable can be overridden with the -u|--untracked-files option
17001700
of linkgit:git-status[1] and linkgit:git-commit[1].
17011701

1702+
status.submodulesummary::
1703+
Defaults to false.
1704+
If this is set to a non zero number or true (identical to -1 or an
1705+
unlimited number), the submodule summary will be enabled and a
1706+
summary of commits for modified submodules will be shown (see
1707+
--summary-limit option of linkgit:git-submodule[1]).
1708+
17021709
tar.umask::
17031710
This variable can be used to restrict the permission bits of
17041711
tar archive entries. The default is 0002, which turns off the

revision.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,18 +1063,22 @@ static int handle_revision_opt(struct rev_info *revs, int argc, const char **arg
10631063

10641064
if (!prefixcmp(arg, "--max-count=")) {
10651065
revs->max_count = atoi(arg + 12);
1066+
revs->no_walk = 0;
10661067
} else if (!prefixcmp(arg, "--skip=")) {
10671068
revs->skip_count = atoi(arg + 7);
10681069
} else if ((*arg == '-') && isdigit(arg[1])) {
10691070
/* accept -<digit>, like traditional "head" */
10701071
revs->max_count = atoi(arg + 1);
1072+
revs->no_walk = 0;
10711073
} else if (!strcmp(arg, "-n")) {
10721074
if (argc <= 1)
10731075
return error("-n requires an argument");
10741076
revs->max_count = atoi(argv[1]);
1077+
revs->no_walk = 0;
10751078
return 2;
10761079
} else if (!prefixcmp(arg, "-n")) {
10771080
revs->max_count = atoi(arg + 2);
1081+
revs->no_walk = 0;
10781082
} else if (!prefixcmp(arg, "--max-age=")) {
10791083
revs->max_age = atoi(arg + 10);
10801084
} else if (!prefixcmp(arg, "--since=")) {

t/t3508-cherry-pick-many-commits.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ test_expect_success 'revert fourth fourth~1 fourth~2 works' '
8282
git diff --quiet HEAD first
8383
'
8484

85-
test_expect_failure 'cherry-pick -3 fourth works' '
85+
test_expect_success 'cherry-pick -3 fourth works' '
8686
git checkout -f master &&
8787
git reset --hard first &&
8888
test_tick &&

0 commit comments

Comments
 (0)