intersystems / intersystems/git-source-control
Checkout branch should quit early if uncommitted changes detected.
- Lingua principale
- ObjectScript
- Stelle
- 22
- Fork
- 14
- Merge medio
- 1g 9h
- PR unite (30g)
- 5
Descrizione
When checking out an existing branch, if there are uncommitted changes, then git will not complete the checkout. However, the pull handler will still proceed with refreshing Iris based on the `git diff`, which is now inaccurate (because it can potentially try to load classes that don't exist in the checkout)
The change needs to take place somewhere within `RunGitCommandWithInput()` before `SyncIrisWithRepoThroughDiff()` is called. I think I have a solution, but I need to run a few more tests first.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia da RunGitCommandWithInput() e traccia il percorso fino a SyncIrisWithRepoThroughDiff() durante il checkout di un branch esistente. Conferma il comportamento quando modifiche non committate impediscono git checkout, quindi assicurati che l’handler del pull non continui ad aggiornare Iris a partire dal git diff non accurato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- git
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100