create_index_entry_for_path


Description:

public IndexEntry? create_index_entry_for_path (string? path, OId? id) throws Error

Create a new index entry.

When path is not null, the path of the returned entry ( get_path) is set to path. The specified path can be either absolute or relative. In the case of an absolute path, the path must reside within the working directory of this. The file related fields of the returned entry are also queried from this path (if the file exists).

If id is not null, then the id of the returned entry is set to id (see get_id) which could point to a blob (for a file) or a tree (for a directory).

Parameters:

this

a Repository.

path

a path.

id

a OId.

Returns:

a IndexEntry or null when an error occurred.