Skip to content
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

gohack redo #67

Open
strowk opened this issue Dec 17, 2019 · 0 comments
Open

gohack redo #67

strowk opened this issue Dec 17, 2019 · 0 comments

Comments

@strowk
Copy link

strowk commented Dec 17, 2019

When doing undo in the folder <somepath>, gohack should save what was undone to the file $HOME/gohack/<somepath> or to the file .gohack-redo. Command gohack redo should undo the undoing, so basically turn back what was removed (and delete redo file).

Use case in my mind is the following:

  1. I'm writing the pre-commit hook, which is calling gohack undo
  2. I'm writing post-commit hook, which is calling gohack redo
  3. (optionally) I'm including .gohack-redo file in the .gitignore to not accidentally commit it
  4. I'm working as usual, being more or less sure, that replace directives would not be commited

That would be particulary convenient for multi-repo applications, which has a shared codebase in a separate repos, because allows working on the cross-repo feature (/service1 /service2 and /lib1 /lib2 folders cloned under one root), while keeping CI builds intact (which only have /service1 cloned).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant