Subject: Re: [PATCH] branch: change install_branch_config() to use skip_prefix()

From: "Dmitry S. Dolzhenko" <[email-masked]>
Date: Thu, 27 Feb 2014 17:05:48 +0400

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;