From d1e13040021c2f0418e00971842d814893a493e7 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 26 Dec 2014 19:38:11 -0500 Subject: utils.go: Rename `OpenRCFile` -> `OpenHistoryFile` This isn't an rc file (as we established previously). It's a storage file. Rename the function to be more clear about it. --- utils/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/utils.go b/utils/utils.go index 01e2556..52af88a 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -23,7 +23,7 @@ func getHomeDir() string { return usr.HomeDir } -func OpenRCFile() (f *os.File, err error) { +func OpenHistoryFile() (f *os.File, err error) { file_path := getHomeDir() + "/" + history_file if _, err := os.Stat(file_path); os.IsNotExist(err) { return os.Create(file_path) @@ -34,7 +34,7 @@ func OpenRCFile() (f *os.File, err error) { func Store(branch string) { branchList := BranchList{} - rcfile, err := OpenRCFile() + rcfile, err := OpenHistoryFile() if err != nil { log.Fatal(err) } -- cgit v1.2.3