GitRepo.mergeMsgExists

Check if the merge message file exists for this repository.

struct GitRepo
@property
bool
mergeMsgExists
(
)

Examples

1 // write a merge message file and verify it can be read
2 auto repo = initRepo(_userRepo, OpenBare.yes);
3 scope(exit) rmdirRecurse(_userRepo);
4 assert(!repo.mergeMsgExists);
5 
6 string msgPath = buildPath(repo.path, "MERGE_MSG");
7 std.file.write(msgPath, "");
8 assert(repo.mergeMsgExists);
9 assert(repo.mergeMsg !is null && repo.mergeMsg.length == 0);

Meta