Skip to content
Discussion options

You must be logged in to vote

In StGit 1.x, unambiguous command prefixes were automatically mapped to the command. For example, with stg ref, ref is [currently] an unambiguous prefix of refresh, and thus was accepted as an alias for stg refresh.

In StGit 2.x, command prefixes are no longer automatically mapped to commands. I did this for two reasons. First, it wasn't trivial to do this with the clap library. Second, it avoids the potential for breaking people's implicit aliases by adding new commands.

I recommend creating explicit aliases for any commands that you'd like to abbreviate. E.g.:

git config --global stgit.alias.ref refresh

Also note that if using StGit's command line completions for bash, zsh, or fish, stg…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shivaprasadbhat
Comment options

Answer selected by shivaprasadbhat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants