Implement git_repository_set_config #735
Loading…
Reference in New Issue
No description provided.
Delete Branch "feature/732-git-repository-set-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #732
@ -168,0 +169,4 @@
//
// This configuration file will be used for all configuration queries involving
// this repository.
func (v *Repository) SetConfig(c *Config) error {
@ -168,0 +174,4 @@
defer runtime.UnlockOSThread()
ret := C.git_repository_set_config(v.ptr, c.ptr)
runtime.KeepAlive(v)
otherwise if
c
is not used by the caller later, the Go runtime is free to remove it in the middle of the CGO call.