aboutsummaryrefslogtreecommitdiffstats
path: root/git-checkout-store/main.go
diff options
context:
space:
mode:
authorTeddy Wing2014-12-06 17:47:56 -0500
committerTeddy Wing2014-12-06 17:47:56 -0500
commit8d512419cc137a2c5f9fa8a1d77fa60e1474f4a6 (patch)
tree91fb6a8c97811af9efad7631684f19dceaabf37c /git-checkout-store/main.go
parent2b091e1072c62f0a6ac35349ac2a899e038b099c (diff)
downloadgit-checkout-history-8d512419cc137a2c5f9fa8a1d77fa60e1474f4a6.tar.bz2
git-checkout-store: .git-checkout-historyrc -> .git-checkout-history
Rename the data file because it's not actually an rc file, it's a data storage file.
Diffstat (limited to 'git-checkout-store/main.go')
-rw-r--r--git-checkout-store/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-checkout-store/main.go b/git-checkout-store/main.go
index 45ea0da..f8ab43a 100644
--- a/git-checkout-store/main.go
+++ b/git-checkout-store/main.go
@@ -25,7 +25,7 @@ func getHomeDir() string {
}
func OpenRCFile() (f *os.File, err error) {
- file_path := getHomeDir() + "/.git-checkout-historyrc"
+ file_path := getHomeDir() + "/.git-checkout-history"
if _, err := os.Stat(file_path); os.IsNotExist(err) {
return os.Create(file_path)
} else {
@@ -41,7 +41,7 @@ func store(branch string) {
}
rcfile.Close()
- file_path := getHomeDir() + "/.git-checkout-historyrc"
+ file_path := getHomeDir() + "/.git-checkout-history"
data, err := ioutil.ReadFile(file_path)
if err != nil {
log.Fatal(err)