Merge branch 'ab/do-not-limit-stash-help-to-push'
"git stash" by default triggers its "push" action, but its implementation also made "git stash -h" to show short help only for "git stash push", which has been corrected. * ab/do-not-limit-stash-help-to-push: stash: don't show "git stash push" usage on bad "git stash" usage
This commit is contained in:
@ -1683,6 +1683,7 @@ static int push_stash(int argc, const char **argv, const char *prefix,
|
||||
if (argc) {
|
||||
force_assume = !strcmp(argv[0], "-p");
|
||||
argc = parse_options(argc, argv, prefix, options,
|
||||
push_assumed ? git_stash_usage :
|
||||
git_stash_push_usage,
|
||||
PARSE_OPT_KEEP_DASHDASH);
|
||||
}
|
||||
|
Reference in New Issue
Block a user