Skip to content

Feature Request: allow git pull --ff-only, or allow custom GIt actions #10008

@rmunn

Description

@rmunn
  • VSCode Version: Version 1.3.1 (commit e6b4afa)
  • OS Version: Ubuntu 14.04

When I work on a Git repo that other people are pushing to, I prefer to use git pull --ff-only as my primary pull command, because I want to have the option of merging or rebasing depending on what the situation is. So if a fast-forward merge is not possible, I don't want Git to automatically create a merge commit for me; I want to examine the situation and decide what to do for myself.

Therefore, neither VS Code's "Pull" or "Pull (Rebase)" commands are really suitable for my preferred workflow. I would like one of the following features:

  1. (My preference): Allow me to specify a custom command to be added to VS Code's Git menu (the dropdown menu that you get by clicking on the three-dots icon). Bonus points if I can specify the position of the custom command (i.e., below Sync but above Pull). Then I could add Pull (FF only) to the menu and be able to use my preferred Git workflow.
  2. Allow me to customize the options on the Git command that is run when I choose one of the menu items. E.g., allow me to customize a git.pull.options config to add --ff-only. Then the "Pull" command that's already in the Git menu would do what I want it to do -- pull only if a fast-forward is possible, otherwise fetch and allow me to fo a merge or rebase manually.
  3. Add a "Pull (FF only)" command to the Git menu, which would run git pull --ff-only.

Currently I can do what I want by opening the integrated terminal and running git pull --ff-only on the command line, so this isn't a blocker for me. But it means I'm basically avoiding using VS Code's Git integration, because sometimes it will do the wrong thing.

Metadata

Metadata

Assignees

Labels

gitGIT issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions