diff options
author | Teddy Wing | 2014-12-26 19:38:11 -0500 |
---|---|---|
committer | Teddy Wing | 2014-12-26 19:38:11 -0500 |
commit | d1e13040021c2f0418e00971842d814893a493e7 (patch) | |
tree | 07dceae5222313e5d12bae6de8231bfe6fb50e0a /utils | |
parent | 4148c1408564d2353a43d78dcc9aab0d480a38fd (diff) | |
download | git-checkout-history-d1e13040021c2f0418e00971842d814893a493e7.tar.bz2 |
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.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/utils.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) } |