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

Sync code with IRIS after all codebase changes #153

Closed
isc-svelury opened this issue Mar 18, 2022 · 1 comment · Fixed by #373
Closed

Sync code with IRIS after all codebase changes #153

isc-svelury opened this issue Mar 18, 2022 · 1 comment · Fixed by #373
Assignees
Labels
enhancement New feature or request

Comments

@isc-svelury
Copy link
Contributor

When the codebase changes after switching branches or merging, we need to have some way to sync changes back to IRIS. Having something similar to the way we handle git pull would probably work best.

@isc-svelury isc-svelury added the enhancement New feature or request label Mar 18, 2022
@isc-svelury isc-svelury self-assigned this Mar 18, 2022
@isc-svelury
Copy link
Contributor Author

Reload after code changes

We want to recompile the files that are changed after a git operation with something like the pull event handlers. This would mean getting a diff and reloading the specific files.

  1. For a new branch creation, it doesn't matter. The code in IRIS should be up-to-date with the previous branch.
  2. For a local or remote branch checkout:
    git diff <new_branch> <old_branch> --name-status
    
  3. After a merge or commit:
    git diff HEAD HEAD~1 --name-status
    

Note: This doesn't cover reloading after stashing or discarding changes, and applying or popping a set of changes from the stash.

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

Successfully merging a pull request may close this issue.

4 participants