bgrainger / GitBlame

"git blame" GUI for Windows
GNU General Public License v2.0
5 stars 3 forks source link

Add a --line= command line argument #14

Open markusgritsch opened 9 years ago

markusgritsch commented 9 years ago

git gui [1] blame has a optional command line argument --line= which allows specifying which line should be centered at startup.

[1] https://git-scm.com/docs/git-gui

bgrainger commented 9 years ago

As a workaround, GitBlame can currently take this as a second command-line parameter, e.g., GitBlame blame.c 1234.

However, it will scroll it to the top, not to the center. I can see the value of being consistent with git gui blame.

markusgritsch commented 9 years ago

Oh, that's perfect! I didn't mean that the command line syntax should be identical to git gui. I just did not know how to specify the line number when invoking your GitBlame. Thank's a lot :)