commit
432a164805
|
@ -77,7 +77,7 @@ func (c *Config) AddFile(path string, level ConfigLevel, force bool) error {
|
|||
runtime.LockOSThread()
|
||||
defer runtime.UnlockOSThread()
|
||||
|
||||
ret := C.git_config_add_file_ondisk(c.ptr, cpath, C.git_config_level_t(level), cbool(force))
|
||||
ret := C.git_config_add_file_ondisk(c.ptr, cpath, C.git_config_level_t(level), nil, cbool(force))
|
||||
runtime.KeepAlive(c)
|
||||
if ret < 0 {
|
||||
return MakeGitError(ret)
|
||||
|
|
2
diff.go
2
diff.go
|
@ -437,6 +437,8 @@ const (
|
|||
DiffShowUnmodified DiffOptionsFlag = C.GIT_DIFF_SHOW_UNMODIFIED
|
||||
DiffPatience DiffOptionsFlag = C.GIT_DIFF_PATIENCE
|
||||
DiffMinimal DiffOptionsFlag = C.GIT_DIFF_MINIMAL
|
||||
DiffShowBinary DiffOptionsFlag = C.GIT_DIFF_SHOW_BINARY
|
||||
DiffIndentHeuristic DiffOptionsFlag = C.GIT_DIFF_INDENT_HEURISTIC
|
||||
)
|
||||
|
||||
type DiffNotifyCallback func(diffSoFar *Diff, deltaToAdd DiffDelta, matchedPathspec string) error
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit c7c5f2c4ecc727ac555f51bd20353f7f3ae9c07a
|
||||
Subproject commit f1323d9c161aeeada190fd9615a8b5a9fb8a7f3e
|
Loading…
Reference in New Issue