stg ref not working #462
-
I wasnt sure if this is an issue. The release notes mentions about the new enhancement "stg new --refresh". I dont see a mention of the previously working "stg ref" instead of "stg refresh" being deprecated. Is this a bug? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In StGit 1.x, unambiguous command prefixes were automatically mapped to the command. For example, with 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.:
Also note that if using StGit's command line completions for bash, zsh, or fish, |
Beta Was this translation helpful? Give feedback.
In StGit 1.x, unambiguous command prefixes were automatically mapped to the command. For example, with
stg ref
,ref
is [currently] an unambiguous prefix ofrefresh
, and thus was accepted as an alias forstg 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…