-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panics if you attempt to commit a file that isn't tracked #10
Labels
bug
Something isn't working
Comments
knoebber
added a commit
that referenced
this issue
Aug 2, 2020
Previously the storage struct had to be setup with multiple calls in different places: - In commands.go, Create a storage literal and set its fields - In files.go, call setup() - In data.go, call setPath() These were called lots of different places in the code, and there was no guarantee that the struct had to been initialized correctly. Instead I created one function, Setup(), to do this work. The fields the CLI must call this now. Once Setup() is called, the backend is free to use the storage struct. Former-commit-id: d05318f
knoebber
added a commit
that referenced
this issue
Aug 2, 2020
Previously the storage struct had to be setup with multiple calls in different places: - In commands.go, Create a storage literal and set its fields - In files.go, call setup() - In data.go, call setPath() These were called lots of different places in the code, and there was no guarantee that the struct had to been initialized correctly. Instead I created one function, Setup(), to do this work. The fields the CLI must call this now. Once Setup() is called, the backend is free to use the storage struct.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To reproduce
The text was updated successfully, but these errors were encountered: