tibirna / qgit

Official git repository for QGit.
Other
175 stars 68 forks source link

RFE: Allow opening a file from the command line #79

Closed kkofler closed 5 years ago

kkofler commented 5 years ago

Currently, any and all command line options are passed verbatim to git log. It would be nice to have a command-line option that, instead, tells QGit to open a specific file, as if "Show file (Alt+A)" had been triggered on the file from the GUI. In particular, this would show the history and the blame view for that file.

Having such an option would allow using QGit instead of git gui blame (ancient Tk UI) or plain git blame (no UI), e.g., as the blame viewer in Git Cola. And the blame viewer is actually already written, all that's missing is a way to trigger it from the command line, instead of having to look up the file in the GUI.