Commit a18b4bd
committed
refspec.c: make valid_fetch_refspec() file-scope static
f2c6fda (refs: consolidate remote name validation, 2020-10-01)
moved valid_remote_name(), which receives the name the user gave to
"git remote add <name>" and checks if it is a name that we allow to
name a remote, to this file, even though it would have been a better
fit in remote.c file. The function was the only caller of the
helper function valid_fetch_refspec() defined in this file, and in
the 4 years or so since then, we have not added any new callers to
the latter.
It could be argued that we should move valid_remote_name() to
remote.c someday, which would make it necessary for this function to
be public, but it is simpler to let the caller to stay there and
reduce the number of public functions by one.
Signed-off-by: Junio C Hamano <[email protected]>1 parent 79ff57f commit a18b4bd
2 files changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
| |||
0 commit comments