TempFile creates a temporary file in the temporary directory specified by the configuration that has the proper permissions for the repository. On success, it returns an open, non-nil *os.File, and the caller is responsible for closing and/or removing it. On failure, the temporary file is automati
(cfg *config.Configuration, pattern string)
| 234 | // This function is designed to handle only temporary files that will be renamed |
| 235 | // into place later somewhere within the Git repository. |
| 236 | func TempFile(cfg *config.Configuration, pattern string) (*os.File, error) { |
| 237 | return tools.TempFile(cfg.TempDir(), pattern, cfg) |
| 238 | } |
no test coverage detected