Skip to content

Commit 8fbf879

Browse files
committed
Revert "stat_tracking_info(): only count real commits"
This reverts commit 19de5d6. It produces a misleading output to decide if a merge can fast-forward.
1 parent 3a04832 commit 8fbf879

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Documentation/RelNotes-1.6.3.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ Updates since v1.6.2
6969
with the 'edit' action in git-add -i/-p, you can abort the editor to
7070
tell git not to apply it.
7171

72-
* The number of commits shown in "you are ahead/behind your upstream"
73-
messages given by "git checkout" and "git status" used to count merge
74-
commits; now it doesn't.
75-
7672
* @{-1} is a new way to refer to the last branch you were on introduced in
7773
1.6.2, but the initial implementation did not teach this to a few
7874
commands. Now the syntax works with "branch -m @{-1} newname".

remote.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,10 +1413,9 @@ int stat_tracking_info(struct branch *branch, int *num_ours, int *num_theirs)
14131413
if (theirs == ours)
14141414
return 0;
14151415

1416-
/* Run "rev-list --no-merges --left-right ours...theirs" internally... */
1416+
/* Run "rev-list --left-right ours...theirs" internally... */
14171417
rev_argc = 0;
14181418
rev_argv[rev_argc++] = NULL;
1419-
rev_argv[rev_argc++] = "--no-merges";
14201419
rev_argv[rev_argc++] = "--left-right";
14211420
rev_argv[rev_argc++] = symmetric;
14221421
rev_argv[rev_argc++] = "--";

0 commit comments

Comments
 (0)