When viewing staged/unstaged changes for a file, there is a toolbar button which toggles between viewing staged and unstaged lines; see image:
Is there a way to trigger this via a command? I haven’t been able to find a built-in command for it.
It looks like this is the code which that button triggers: https://github.com/atom/github/blob/3fab2722fb76b4f2ff1305747b7b98ab86a96330/lib/controllers/file-patch-controller.js#L508-L513
Is it possible to somehow call that function from a custom command? I’m new to Atom, so I’m not sure if it’s possible to call something like that which isn’t part of the Atom API.
Or is there a way to trigger the change via keyboard which I am missing?