git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
DDDmitry 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;
Previous: David Kastrup
Message 4 of 4 in “branch: change install_branch_config() to use skip_prefix()”
  1. branch: change install_branch_config() to use skip_prefix()Dmitry S. Dolzhenko, Feb 27, 2014
  2. Michael HaggertyFeb 27, 2014
  3. David KastrupFeb 27, 2014
  4. Dmitry S. DolzhenkoFeb 27, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.