From: Ramkumar Ramachandra Date: Wed, 11 Jan 2012 12:38:14 GMT Subject: Re: [PATCH 4/8] revert: separate out parse errors logically Message-ID: In-Reply-To: <20120110190311.GD22184@burratino> New commit message. revert: simplify insn parsing logic Our instruction sheet parser first looks for a valid action by checking that the buffer starts with either "pick" or "revert". Then, it looks for either spaces or tabs before looking for the object name, erroring out if it doesn't find any. Simplify this logic without making any functional changes by looking for ("pick " or "pick\t") or ("revert " or "revert\t") in the first place. -- Ram