Re: [PATCH] branch: change install_branch_config() to use skip_prefix()
- From
- Dmitry S. Dolzhenko <dmitrys.dolzhenko@yandex.ru>
- Date
- Feb 27, 2014, 13:05 UTC
- 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;