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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 	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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]