Skip to content

Commit c79eddf

Browse files
peffgitster
authored andcommitted
ref-filter: stop referring to "sha1 array"
A comment refers to the "sha1s in the given sha1 array". But this became an oid_array along with everywhere else in 910650d (Rename sha1_array to oid_array, 2017-03-31). Plus there's an extra line of leftover editing cruft we can drop. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7383b25 commit c79eddf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ref-filter.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1976,10 +1976,9 @@ static int for_each_fullref_in_pattern(struct ref_filter *filter,
19761976
}
19771977

19781978
/*
1979-
* Given a ref (sha1, refname), check if the ref belongs to the array
1980-
* of sha1s. If the given ref is a tag, check if the given tag points
1981-
* at one of the sha1s in the given sha1 array.
1982-
* the given sha1_array.
1979+
* Given a ref (oid, refname), check if the ref belongs to the array
1980+
* of oids. If the given ref is a tag, check if the given tag points
1981+
* at one of the oids in the given oid array.
19831982
* NEEDSWORK:
19841983
* 1. Only a single level of inderection is obtained, we might want to
19851984
* change this to account for multiple levels (e.g. annotated tags

0 commit comments

Comments
 (0)