MCPcopy Create free account
hub / github.com/git/git / valid_remote_nick

Function valid_remote_nick

remote.c:653–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651
652#ifndef WITH_BREAKING_CHANGES
653static int valid_remote_nick(const char *name)
654{
655 if (!name[0] || is_dot_or_dotdot(name))
656 return 0;
657
658 /* remote nicknames cannot contain slashes */
659 while (*name)
660 if (is_dir_sep(*name++))
661 return 0;
662 return 1;
663}
664#endif /* WITH_BREAKING_CHANGES */
665
666static const char *remotes_remote_for_branch(struct remote_state *remote_state,

Callers 1

remotes_remote_get_1Function · 0.85

Calls 1

is_dot_or_dotdotFunction · 0.85

Tested by

no test coverage detected