0

Open existing SmartGit instance from command line

arcadius 3 months ago updated 1 week ago 1

We have some useful command-line arguments.

But smartgit.sh always creates new windows.

Can a new command-line parameter be added, to apply all parameters like --log and --open to an already opened SmartGit instance, if any?

If there are several SmartGits opened, modify any of them.

If there is no SmartGits opened, ignore the new parameter, open new SmartGit.
By the way, it would be great if --anchor-commit argument worked with --open flag too (not --log only), just focusing the commit specified.

Command line options

Locally (Debian 12), I linked Double Commander, IDEs and SmartGit by hotkeys. F.e. from SmartGit I can open current file in IDE and Commander. To be able to open the current repo and maybe branch in SmartGit, I've written a Bash script. Its 1st parameter is a path inside a Git repo to open, the 2nd (optional) -- name of Git branch to open.start_smartgit_repo.sh