File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1045,10 +1045,13 @@ static VALUE rb_git_repo_read_header(VALUE self, VALUE hex)
1045
1045
/**
1046
1046
* call-seq:
1047
1047
* repo.expand_oids([oid..], object_type = :any) -> hash
1048
+ * repo.expand_oids([oid..], object_type = [type..]) -> hash
1048
1049
*
1049
1050
* 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.
1052
1055
*
1053
1056
* Returns a hash of `{ short_oid => full_oid }` for the short OIDs which
1054
1057
* exist in the repository and match the expected object type. Missing OIDs
You can’t perform that action at this time.
0 commit comments