From: Paolo Bonzini Date: Fri, 02 Mar 2007 16:29:12 GMT Subject: Re: [PATCH] Add git-config --remove-section, document --rename-section Message-ID: <45E850D8.4040306@lu.unisi.ch> In-Reply-To: > if (buf[i] == '[') { > if (section_name_match(&buf[i + 1], old_name) { > if (new_name == NULL) > remove = 1; > else > /* write new section */ > continue; > } > remove = 0; > } > if (!remove) > /* write buf */ Try doing this and you'll see that the 8-character indentation makes it pretty hard. :-) Paolo