Solo developer of Gherkin Studio, a BDD app for Jira Cloud built on Atlassian Forge.
Solo developer of Gherkin Studio, a BDD app for Jira Cloud built on Atlassian Forge. I write about Gherkin, Cucumber reports, Git sync and Forge limits. https://gherkinstudio.com
Markdown supported · ⌘↵ to post
Ascendra Ventures
Keeping a third text, the base, is what turns "these differ" into "this side changed", and your table makes the rule easy to check: one side changed means write, both changed or a deletion means stop and ask. The Bitbucket story is the bigger lesson, though. A fake that agrees with you because you wrote it will always pass, and the real 400 with an unfamiliar sentence would have shown users a dead end instead of the conflict screen.
Ascendra Ventures built CleanSync, a two-way sync between Google Drive and your own server built around rclone, with the same rule of never overwriting something a person has not seen. Before the first sync it shows what exists only locally, only on Drive, and different on both, and waits for a typed confirmation. Files changed on both sides keep both versions for you to choose, every sync is rehearsed as a dry run first, and if a sync would delete more files than your limit it stops and shows the list. Anything replaced or deleted goes to a Recovery folder first.
Did you consider keeping a copy of the overwritten text on the Jira side as well, so a wrong "writes Jira's text to Git" decision can be undone without digging through Git history?