summaryrefslogtreecommitdiff
path: root/settings.go
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2020-05-09 20:39:51 -0700
committerGitHub <[email protected]>2020-05-09 20:39:51 -0700
commit31f877e249e28c29cc4fcd512381a5a5b26e59d9 (patch)
treeeba9030b1449cddf6274b748fbfcf010680d35cd /settings.go
parent8b51d0db8e40e97283b771a5a51b13bea4651f81 (diff)
parentcf6522c7fe093244a14334ced1c90c9791231a3e (diff)
Merge pull request #582 from suhaibmujahid/method-rename
It is not Go idiomatic to put Get into the getter's name
Diffstat (limited to 'settings.go')
-rw-r--r--settings.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/settings.go b/settings.go
index c6dfe1c..9f2ec02 100644
--- a/settings.go
+++ b/settings.go
@@ -93,10 +93,15 @@ func EnableCaching(enabled bool) error {
}
}
-func GetCachedMemory() (current int, allowed int, err error) {
+func CachedMemory() (current int, allowed int, err error) {
return getSizetSizet(C.GIT_OPT_GET_CACHED_MEMORY)
}
+// deprecated: You should use `CachedMemory()` instead.
+func GetCachedMemory() (current int, allowed int, err error) {
+ return CachedMemory()
+}
+
func SetCacheMaxSize(maxSize int) error {
return setSizet(C.GIT_OPT_SET_CACHE_MAX_SIZE, maxSize)
}