From: Dmitry S. Dolzhenko Date: Thu, 27 Feb 2014 13:05:48 GMT Subject: Re: [PATCH] branch: change install_branch_config() to use skip_prefix() Message-ID: <530F382C.2030101@yandex.ru> In-Reply-To: <530F248B.6030506@alum.mit.edu> Michael, Thank you for your remarks. > If you look at what skip_prefix() and starts_with() do, I think you will > find that you are doing too much work here. How about this one? const char *shortname = skip_prefix(remote, "refs/heads/"); int remote_is_branch = shortname != NULL;