commit


Description:

public async void commit () throws Error

Commit the change to database.

This method: 1. Checks if file is ignored (skips if so) 2. Inserts change record into database (to get id) 3. Creates backup file if needed (for modified/deleted files) 4. Updates database record with backup_path

Exceptions:

Error

if backup creation or database insert fails