How to add git update-index --assume-unchanged to VS Code git context menu?

914 Views Asked by At

How would I create a command/context menu option in VS Code, Source Control (GIT) window, which would recognize files I select under "Changes", and then allow me to choose "Assume Unchanged" from a context menu, and then it would perform: 'git update-index --assume-unchanged ' on all files selected?

Currently I need to perform this file by file, in shell, whenever I require this functionality, and it's annoying.

Has someone build this command (update-index) into their GIT extension (for VS Code -- there seems to be one for Visual Studio). For bonus points, it would also be useful to have the option to reverse it (Assume Changed), with --no-assume-unchanged switch.

1

There are 1 best solutions below

1
On
  1. try some vs-code GIT extensions, git history, gitlens and so on
  2. the third-party software: fork, sourcetree good lucy