Skip to content

gohack redo #67

@strowk

Description

@strowk

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions