mirror of
https://github.com/moghtech/komodo.git
synced 2026-05-08 04:14:01 -05:00
[GH-ISSUE #661] Add per-repo option to use more conservative approach for git pull
#2348
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @oblivioncth on GitHub (Jul 12, 2025).
Original GitHub issue: https://github.com/moghtech/komodo/issues/661
Although ultimately the users responsibility, in a similar vein to #458 it would be cool if a toggle could be added to repositories that when enabled will cause komodo to use the following strategy when a
git pullis needed (instead of the currentreset --hardapproach):git stashgit stash popIf there are merge conflicts or other issues, then simply fail the actions with an error so the user knows they need to clean-up their local repo.
Alternatively
git stashif working changesgit stash popif stash presentEssentially, just expect the repo to be a state Komodo can use, and if any point a problem arises simply fail with an error instead of trying to force the repo back into a useable state.
Would help prevent the loss of WIP changes to some stacks if Komodo was being used for that purpose.
Low priority issue of course.
@adamflagg commented on GitHub (Dec 2, 2025):
Agreed, this is my conundrum currently if I want to run renovate more frequently Komodo's pull will erase that WIP work unless I manually stash it prior.