naggie / dstask

Git powered terminal-based todo/note manager -- markdown note page per task. Single binary!
https://calbryant.uk/blog/dstask-a-taskwarrior-alternative/
MIT License
793 stars 47 forks source link

Require --ff on pull #152

Closed dontlaugh closed 2 years ago

dontlaugh commented 2 years ago

A globally-set --ff-only means a git pull will refuse to fall back to merge commit if a fast forward cannot be set. This causes sync errors more frequently.

Let's prefer setting --ff explicitly, making the choice on behalf of the user to prefer merge commits to failures. The only downside is the non-linear commit history, but this seems minor, given our use case.

See git pull --help