Refactoring of GitSwiftFile write mode