You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generated files are easy to get out of sync and committed generated files can result in conflicts when rebasing, etc.
Consequently, it would be useful to have some Project Manager options that can create Git hooks that automatically run project-manager switch in some situations.
E.g.,
the post-checkout hook can ensure that the generated files are in sync when you switch branches1,
pre-push can check that generated files are up-to-date, and
regenerating the files on each step of an interactive rebase can quickly clear up conflicts after some earlier change.
These should be optional, as regenerating files can take some time, and it may not be important for a repo to, say, ensure that every commit has up-to-date files, so long as the PR itself does.
Footnotes
I also have post-checkout set for my user, so that when I clone a new Project Manager-using repo, files are generated immediately. ↩
The text was updated successfully, but these errors were encountered:
Generated files are easy to get out of sync and committed generated files can result in conflicts when rebasing, etc.
Consequently, it would be useful to have some Project Manager options that can create Git hooks that automatically run
project-manager switch
in some situations.E.g.,
post-checkout
hook can ensure that the generated files are in sync when you switch branches1,pre-push
can check that generated files are up-to-date, andThese should be optional, as regenerating files can take some time, and it may not be important for a repo to, say, ensure that every commit has up-to-date files, so long as the PR itself does.
Footnotes
I also have
post-checkout
set for my user, so that when I clone a new Project Manager-using repo, files are generated immediately. ↩The text was updated successfully, but these errors were encountered: