add_file


Description:

public bool add_file (File file) throws Error

Add a file to the index.

The specified file must be in the working directory and must exist and be readable.

Parameters:

this

a Index.

file

file to add.

Returns:

true if the file was added to the index or false if there was an error.