author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Sat, 15 Sep 2007 17:39:52 +0000 (18:39 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 15 Sep 2007 23:34:11 +0000 (16:34 -0700) | ||
commit | 023756f4eb71bfa37e17b0bdbf4b9fcbbba95466 | |
tree | 8e36fe2a13d5c5a1ea473eb274d834ffd50fe983 | tree | snapshot |
parent | e598c5177e439271e8bd81ef2a689a3ab0db80e6 | commit | diff |
revision walker: --cherry-pick is a limited operation
We used to rely on the fact that cherry-pick would trigger the code path
to set limited = 1 in handle_commit(), when an uninteresting commit was
encountered.
However, when cherry picking between two independent branches, i.e. when
there are no merge bases, and there is only linear development (which can
happen when you cvsimport a fork of a project), no uninteresting commit
will be encountered.
So set limited = 1 when --cherry-pick was asked for.
Noticed by Martin Bähr.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
We used to rely on the fact that cherry-pick would trigger the code path
to set limited = 1 in handle_commit(), when an uninteresting commit was
encountered.
However, when cherry picking between two independent branches, i.e. when
there are no merge bases, and there is only linear development (which can
happen when you cvsimport a fork of a project), no uninteresting commit
will be encountered.
So set limited = 1 when --cherry-pick was asked for.
Noticed by Martin Bähr.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c | diff | blob | history | |
t/t6007-rev-list-cherry-pick-file.sh | diff | blob | history |