Commit 48a8b45
committed
refs: use is_root_ref_syntax() in refname_is_safe()
The open-coded logic in refname_is_safe() predates the addition of
is_root_ref_syntax(). But now that we have it, we can make use of it.
This shortens the code, but also makes sure we use a consistent
definition of the syntax.
Signed-off-by: Jeff King <peff@peff.net>1 parent 54a6fea commit 48a8b45
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
| |||
404 | 406 | | |
405 | 407 | | |
406 | 408 | | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
| 409 | + | |
413 | 410 | | |
414 | 411 | | |
415 | 412 | | |
| |||
0 commit comments