Age | Commit message (Collapse) | Author |
|
When getting a list of branches but the file doesn't exist, print a
custom error message that informs users that it's necessary to run
`git-checkout-store` before `git-checkout-history` will be able to do
anything.
|
|
This isn't an rc file (as we established previously). It's a storage
file. Rename the function to be more clear about it.
|
|
Extract code that was duplicated from checkout-history-store so that it
now lives in a single place: the utils.go file.
Add a new function to utils.go that returns the list of branches in
history so that we can grab this for git-checkout-history.
|
|
Stop hard-coding the storage filename.
|
|
Create utils package and move everything related to branch creation into
the utils.go file. Then call `utils.Store` to store a branch.
Doing this so I can easily store a branch in history from a
`git-checkout-history` call. This is because we want to save to history
even if you're checking out using the history shorthand.
|