not sure if this is a bug, or just a preventable f...
# report-bugs
k
not sure if this is a bug, or just a preventable footgun? 1. create + submit a PR 2. merge PR 3. modify that branch locally (e.g. with
gt m
) 4. run
gt sync
observed behavior:
gt sync
suggests that I delete that branch, like always, and defaults to "yes," resulting in losing any modifications that i've made to the branch locally desired behavior: it should prevent deletion of work that is not yet merged, even if that branch is merged. e.g. require a
--force
flag, or some more significant confirmation, or display the changes that would be thrown away? (i was able to recover things from the reflog but it was more painful and easy to lose work than i expected)
p
(If applicable) To help us repro, please send the following if you haven't already: - PR links, screenshots, and/or debug output if applicable - Repro steps - Does this happen consistently? Just to you or others on your team also? - Is this a regression? Is the problem new? - If you're having an issue with the CLI, please send us debug logs using
gt feedback --with-debug-context <any message>
Apologies for the delayed response! I think this is the expected behavior today but think we can provide better warnings. Will pass the feedback along to product
k
thanks! it makes some sense as the behavior, but to a newcomer to graphite, it's an easy way to lose real work
p
Yeah absolutely - will let the product team know to take a look here!
👍 1