Set path for the commit window document

This is so that the commit window’s text view sources project specific settings.
This commit is contained in:
Ronald Wampler
2014-09-29 15:35:25 -04:00
committed by Allan Odgaard
parent 062a939189
commit 8fd1e1088d

View File

@@ -360,6 +360,7 @@ static void* kOakCommitWindowIncludeItemBinding = &kOakCommitWindowIncludeItemBi
}
document::document_ptr commitMessage = document::from_content("", fileType);
commitMessage->set_virtual_path(path::join(_environment["TM_PROJECT_DIRECTORY"], "commit-message.txt"));
if(NSString* logArgument = [self.options objectForKey:@"--log"])
commitMessage->set_content(to_s(logArgument));