Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH 3/9] vcs_info git: detect revert or cherry-pick with multiple commits
- X-seq: zsh-workers 33171
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH 3/9] vcs_info git: detect revert or cherry-pick with multiple commits
- Date: Mon, 15 Sep 2014 06:22:35 +0000
- Cc: Marc Finet <m.dreadlock@xxxxxxxxx>, zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d201312; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=xpSPX7kaE52Bj+TVbOFpiYwT3Ju4w1vTOcYAyugRvaY=; b=JtPrhjYfNqVh3wddVzARCDtsCeDtvImzC0a+rE1fkfia0SW4+YXOMJPv+0XuSzPOnyl4Ow8fAIbVyDWEtI7V6U+/64eWYJzs1XfzVQf5zXVFafD3OdKXXu+xMqt00Z8eizqNbkbF/sFPkCNfDz33MfnyEAdCo460br5bI8Gfe+y+R3OdmtwcKJbfuHZOngVni7AVOAM/ilOuKIX7;
- In-reply-to: <87tx4a7ddm.fsf@ft.bewatermyfriend.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>, Marc Finet <m.dreadlock@xxxxxxxxx>, zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Openpgp: url=https://www.security.spodhuis.org/PGP/keys/0x4D1E900E14C1CC04.asc
- References: <1410557443-24178-1-git-send-email-m.dreadlock@gmail.com> <1410557443-24178-4-git-send-email-m.dreadlock@gmail.com> <87tx4a7ddm.fsf@ft.bewatermyfriend.org>
On 2014-09-14 at 11:36 +0200, Frank Terbeck wrote:
> Marc Finet wrote:
> > When revert or cherry-pick involve many commits the .git/sequencer
> > directory holds context for the action and no CHERRY_PICK_HEAD exist.
>
> Hm. I've never hit that situation. I suppose it's correct. You wouldn't
> happen to have a documentation reference to this one?
There are regression tests in t/t3507-cherry-pick-conflict.sh inside the
Git tree which show the situations in which the CHERRY_PICK_HEAD must or
must not exist.
Looks like options such as `--strategy=resolve` will inhibit the
creation of that file.
http://git-scm.com/docs/git-cherry-pick
----------------------------8< cut here >8------------------------------
SEQUENCER SUBCOMMANDS
--continue
Continue the operation in progress using the information in
.git/sequencer. Can be used to continue after resolving conflicts in a
failed cherry-pick or revert.
----------------------------8< cut here >8------------------------------
That's not proof that .git/sequencer can hold information even when
CHERRY_PICK_HEAD exists, but it's suggestive.
It _looks_ as though, if you are cherry-picking multiple commits in one
invocation, then .git/sequencer will exist; during the processing of
each commit in turn, CHERRY_PICK_HEAD will usually be created, then
removed iff that cherry-pick was successful.
-Phil
Messages sorted by:
Reverse Date,
Date,
Thread,
Author