Browse Source
Rename the transitory refs_werrres_ref_unsafe() function to refs_resolve_ref_unsafe(), now that all callers of the old function have learned to pass in a "failure_errno" parameter. The coccinelle semantic patch added in the preceding commit works, but I couldn't figure out how to get spatch(1) to re-flow these argument lists (and sometimes make lines way too long), so this rename was done with: perl -pi -e 's/refs_werrres_ref_unsafe/refs_resolve_ref_unsafe/g' \ $(git grep -l refs_werrres_ref_unsafe -- '*.c') But after that "make contrib/coccinelle/refs.cocci.patch" comes up empty, so the result would have been the same. Let's remove that transitory semantic patch file, we won't need to retain it for any other in-flight changes, refs_werrres_ref_unsafe() only existed within this patch series. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
![avarab@gmail.com](/assets/img/avatar_default.png)
![Junio C Hamano](/assets/img/avatar_default.png)
7 changed files with 22 additions and 29 deletions
@ -1,5 +0,0 @@
@@ -1,5 +0,0 @@
|
||||
@@ |
||||
expression refs, refname, resolve_flags, oid, flags, failure_errno; |
||||
@@ |
||||
- refs_werrres_ref_unsafe(refs, refname, resolve_flags, oid, flags, failure_errno) |
||||
+ refs_resolve_ref_unsafe(refs, refname, resolve_flags, oid, flags, failure_errno) |
Loading…
Reference in new issue