diff options
| author | Meet Soni <meetsoni3017@gmail.com> | 2025-02-04 19:58:52 +0530 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-02-04 09:55:59 -0800 |
| commit | f21ea69d945f958704f2fe143c2638ecae6e0d12 (patch) | |
| tree | 0a39bf5dd912a03b9716262f744ae7c1e1f4a3af /refspec.c | |
| parent | The seventh batch (diff) | |
| download | git-f21ea69d945f958704f2fe143c2638ecae6e0d12.tar.gz git-f21ea69d945f958704f2fe143c2638ecae6e0d12.zip | |
remote: relocate valid_remote_name
Move the `valid_remote_name()` function from the refspec subsystem to
the remote subsystem to better align with the separation of concerns.
Signed-off-by: Meet Soni <meetsoni3017@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refspec.c')
| -rw-r--r-- | refspec.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -236,16 +236,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) { |
