Subject: Re: [PATCH] Add git-config --remove-section, document --rename-section

From: Paolo Bonzini <[email-masked]>
Date: Fri, 02 Mar 2007 17:29:12 +0100

> 	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