Re: [PATCH] Add git-config --remove-section, document --rename-section
- From
Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
- Date
- Mar 2, 2007, 16:29 UTC
- Message-ID
- <45E850D8.4040306@lu.unisi.ch>
- In-Reply-To
- <Pine.LNX.4.63.0703021640440.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Show 12 quoted lines
> 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