func ParseObjectIDWithPath(ctx context.Context, rep repo.Repository, objectIDWithPath string) (object.ID, error) {
	parts := strings.Split(objectIDWithPath, "/")

	oid, err := object.ParseID(parts[0])
	if err != nil {
		return object.EmptyID, errors.Wrapf(err, "can't parse object ID %v", objectIDWithPath)
	}

	if len(parts) == 1 {
		return oid, nil
	}

	return parseNestedObjectID(ctx, AutoDetectEntryFromObjectID(ctx, rep, oid, ""), parts[1:])
}
// ParseObjectIDWithPath interprets the given ID string (which could be an object ID optionally followed by
// nested path specification) and returns corresponding object.ID.
ParseObjectIDWithPath interprets the given ID string (which could be an object ID optionally followed by
nested path specification) and returns corresponding object.ID.
// ParseObjectIDWithPath interprets the given ID string ( which could be an object ID optionally followed by // nested path specification ) and returns corresponding object . ID .
func ParseObjectIDWithPath(ctx context.Context, rep repo.Repository, objectIDWithPath string) (object.ID, error) {
	parts := strings.Split(objectIDWithPath, "/")
	oid, err := object.ParseID(parts[0])
	if err != nil {
		return object.EmptyID, errors.Wrapf(err, "can't parse object ID %v", objectIDWithPath)
	}
	if len(parts) == 1 {
		return oid, nil
	}
	return parseNestedObjectID(ctx, AutoDetectEntryFromObjectID(ctx, rep, oid, ""), parts[1:])
}
func ParseObjectIDWithPath ( ctx context . Context , rep repo . Repository , objectIDWithPath string ) ( object . ID , error ) { parts := strings . Split ( objectIDWithPath , " " ) oid , err := object . ParseID ( parts [ 0 ] ) if err != nil { return object . EmptyID , errors . Wrapf ( err , " " , objectIDWithPath ) } if len ( parts ) == 1 { return oid , nil } return parseNestedObjectID ( ctx , AutoDetectEntryFromObjectID ( ctx , rep , oid , " " ) , parts [ 1 : ] ) }
ParseObjectIDWithPath interprets the given ID string (which could be an object ID optionally followed by
nested path specification) and returns corresponding object.ID.
ParseObjectIDWithPath interprets the given ID string ( which could be an object ID optionally followed by nested path specification ) and returns corresponding object . ID .