Skip to content

Commit bd34111

Browse files
committed
doc: update README.md for commandline usage
Signed-off-by: leo <[email protected]>
1 parent 7db1442 commit bd34111

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,16 @@ For **Linux** users:
148148
* Maybe you need to set environment variable `AVALONIA_SCREEN_SCALE_FACTORS`. See https://github.com/AvaloniaUI/Avalonia/wiki/Configuring-X11-per-monitor-DPI.
149149
* If you can NOT type accented characters, such as `ê`, `ó`, try to set the environment variable `AVALONIA_IM_MODULE` to `none`.
150150

151+
## Commandline arguments
152+
153+
Users can also launcher `SourceGit` from commandline. Usage:
154+
155+
```
156+
<SOURCEGIT_EXEC> <DIR> // Open repository in existing `SourceGit` instance or a new one
157+
<SOURCEGIT_EXEC> --file-history <FILE_PATH> // Launch `SourceGit` to see the history of a file
158+
<SOURCEGIT_EXEC> --blame <FILE_PATH> // Launch `SourceGit` to blame a file (HEAD version only)
159+
```
160+
151161
## OpenAI
152162

153163
This software supports using OpenAI or other AI service that has an OpenAI compatible HTTP API to generate commit message. You need configurate the service in `Preference` window.

0 commit comments

Comments
 (0)