Skip to content

Commit c519063

Browse files
committed
repo: Update documentation
1 parent 130535a commit c519063

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ext/rugged/rugged_repo.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,10 +1045,13 @@ static VALUE rb_git_repo_read_header(VALUE self, VALUE hex)
10451045
/**
10461046
* call-seq:
10471047
* repo.expand_oids([oid..], object_type = :any) -> hash
1048+
* repo.expand_oids([oid..], object_type = [type..]) -> hash
10481049
*
10491050
* Expand a list of short oids to their full value, assuming they exist
1050-
* in the repository. If `object_type` is passed, OIDs are expected to be
1051-
* of the given type.
1051+
* in the repository. If `object_type` is passed and is an array, it must
1052+
* be the same length as the OIDs array. If it's a single type name, all
1053+
* OIDs will be expected to resolve to that object type. OIDs that don't
1054+
* match the expected object types will not be expanded.
10521055
*
10531056
* Returns a hash of `{ short_oid => full_oid }` for the short OIDs which
10541057
* exist in the repository and match the expected object type. Missing OIDs

0 commit comments

Comments
 (0)