From: Junio C Hamano Date: Wed, 27 Jul 2011 22:51:34 GMT Subject: Re: [PATCH 11/18] revert: Save data for continuing after conflict resolution Message-ID: <7vy5zjmj61.fsf@alter.siamese.dyndns.org> In-Reply-To: <1311736755-24205-12-git-send-email-artagnon@gmail.com> Ramkumar Ramachandra writes: > + if (!prefixcmp(start, "pick ")) { > + action = CHERRY_PICK; > + insn_len = strlen("pick"); > + p = start + insn_len + 1; > + } > + else if (!prefixcmp(start, "revert ")) { > + action = REVERT; > + insn_len = strlen("revert"); > + p = start + insn_len + 1; > + } > + else > + return NULL; (style) if (...) { ... } else if (...) { ... } else { ... }