create_index_entry_for_file


Description:

public IndexEntry? create_index_entry_for_file (File? file, OId? id) throws Error

Create a new index entry.

When file is not null, the path of the returned entry ( get_path) is set to the path of file relative to the working directory of this. The file must reside in the working directory of this . The file related fields of the returned entry are also queried from this file (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.

file

a File.

id

a OId.

Returns:

a IndexEntry or null when an error occurred.




2022 vala-language.org