Skip to content

Commit

Permalink
Revert "stat_tracking_info(): only count real commits"
Browse files Browse the repository at this point in the history
This reverts commit 19de5d6.
It produces a misleading output to decide if a merge can fast-forward.
  • Loading branch information
Junio C Hamano committed Apr 21, 2009
1 parent 3a04832 commit 8fbf879
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions Documentation/RelNotes-1.6.3.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ Updates since v1.6.2
with the 'edit' action in git-add -i/-p, you can abort the editor to
tell git not to apply it.

* The number of commits shown in "you are ahead/behind your upstream"
messages given by "git checkout" and "git status" used to count merge
commits; now it doesn't.

* @{-1} is a new way to refer to the last branch you were on introduced in
1.6.2, but the initial implementation did not teach this to a few
commands. Now the syntax works with "branch -m @{-1} newname".
Expand Down
3 changes: 1 addition & 2 deletions remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -1413,10 +1413,9 @@ int stat_tracking_info(struct branch *branch, int *num_ours, int *num_theirs)
if (theirs == ours)
return 0;

/* Run "rev-list --no-merges --left-right ours...theirs" internally... */
/* Run "rev-list --left-right ours...theirs" internally... */
rev_argc = 0;
rev_argv[rev_argc++] = NULL;
rev_argv[rev_argc++] = "--no-merges";
rev_argv[rev_argc++] = "--left-right";
rev_argv[rev_argc++] = symmetric;
rev_argv[rev_argc++] = "--";
Expand Down

0 comments on commit 8fbf879

Please sign in to comment.