diff options
author | Junio C Hamano <gitster@pobox.com> | 2025-02-12 10:08:54 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-02-12 10:08:54 -0800 |
commit | 0a99ffb4d6645142e68517c59db61b7e58a4f7cc (patch) | |
tree | be7a8cad2f222763a145191470dff02ed7a16ad1 /refspec.c | |
parent | 998c5f0c7554f511bafff587292f986a42fa2944 (diff) | |
parent | f21ea69d945f958704f2fe143c2638ecae6e0d12 (diff) |
Merge branch 'ms/remote-valid-remote-name'
Code shuffling.
* ms/remote-valid-remote-name:
remote: relocate valid_remote_name
Diffstat (limited to 'refspec.c')
-rw-r--r-- | refspec.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -238,16 +238,6 @@ int valid_fetch_refspec(const char *fetch_refspec_str) return ret; } -int valid_remote_name(const char *name) -{ - int result; - struct strbuf refspec = STRBUF_INIT; - strbuf_addf(&refspec, "refs/heads/test:refs/remotes/%s/test", name); - result = valid_fetch_refspec(refspec.buf); - strbuf_release(&refspec); - return result; -} - void refspec_ref_prefixes(const struct refspec *rs, struct strvec *ref_prefixes) { |