mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
The use of --theirs for Unstaged and --ours for Staged was based entirely on the way conflicts were represented in git status --short, except, that's backwards, the staged column contains our side of the merge so discarding it should use --theirs. I never noticed because I don't use this feature. Fixing this is guaranteed to burn anybody who learned the whole behavior, so let's promote 2X and 3X to official status, and require opting in to the flipped default. Also, since --ours and --theirs only touch the worktree, the correct analogous operations for deletion is *not* git rm, but rather to remove the worktree file directly. So let's do that, and add it to 2X and 3X too. Closes https://github.com/tpope/vim-fugitive/issues/1699 References https://github.com/tpope/vim-fugitive/issues/1648