Add read/write support for long-sha