From: Thomas Gummerer <t.gummerer@gmail.com>
To: git@vger.kernel.org
Cc: "SZEDER Gábor" <szeder.dev@gmail.com>,
"Junio C Hamano" <gitster@pobox.com>,
"Thomas Gummerer" <t.gummerer@gmail.com>
Subject: [PATCH v2 0/2] completion: improvements for git stash
Date: Fri, 20 Apr 2018 00:25:12 +0100 [thread overview]
Message-ID: <20180419232514.16572-1-t.gummerer@gmail.com> (raw)
In-Reply-To: <20180417212945.24002-1-t.gummerer@gmail.com>
Previous round was at <20180417212945.24002-1-t.gummerer@gmail.com>.
Thanks Junio for your input on the previous round.
This round drops what was 1/3 in the previous round. We keep
completing the options for 'git stash save', so calling the variable
'save_opts' and defining what would be 'push_opts' as 'save_opts' +
'--message' makes sense.
2/3 (now 1/2) was mostly rewritten. We now no longer suggest 'save'
in 'git stash <tab>', complete 'git stash s<tab>' will complete to
'git stash show', but 'git stash sa<tab>' (or longer) will keep
completing to 'git stash save', as the user most likely already knows
about 'git stash save', and wanted to type that. We also keep
completing the options for 'git stash save' on 'git stash save
--<tab>'.
3/3 (now 2/2) stays the same as in the previous round.
I didn't find a good way to implement "reluctant completion" (I'm also
by no means an expert in bash completion, so there may well be a way I
couldn't find by googl'ing around), so I left that out of this
series.
I don't think it's strictly necessary for the deprecation either, as
we can just print a warning message when the user actually uses 'git
stash save' at some point, which would make a message printed when
using the completion redundant anyway. I feel like that warning
message is not something we're quite ready for yet and I'd rather wait
a few more releases before doing that though.
Thomas Gummerer (2):
completion: stop showing 'save' for stash by default
completion: make stash -p and alias for stash push -p
contrib/completion/git-completion.bash | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
--
2.17.0.252.gfe0a9eaf31
next prev parent reply other threads:[~2018-04-19 23:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-17 21:29 [PATCH 0/3] completion: improvements for git stash Thomas Gummerer
2018-04-17 21:29 ` [PATCH 1/3] completion: rename save_opts to default_opts for stash Thomas Gummerer
2018-04-17 21:29 ` [PATCH 2/3] completion: stop completing 'save' as stash subcommand Thomas Gummerer
2018-04-17 21:29 ` [PATCH 3/3] completion: make stash -p and alias for stash push -p Thomas Gummerer
2018-04-18 8:32 ` [PATCH 0/3] completion: improvements for git stash Junio C Hamano
2018-04-18 21:15 ` Thomas Gummerer
2018-04-19 23:25 ` Thomas Gummerer [this message]
2018-04-19 23:25 ` [PATCH v2 1/2] completion: stop showing 'save' for stash by default Thomas Gummerer
2018-04-20 5:17 ` Duy Nguyen
2018-04-22 20:36 ` Thomas Gummerer
2018-04-19 23:25 ` [PATCH v2 2/2] completion: make stash -p and alias for stash push -p Thomas Gummerer
2018-04-20 1:38 ` [PATCH v2 0/2] completion: improvements for git stash Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180419232514.16572-1-t.gummerer@gmail.com \
--to=t.gummerer@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=szeder.dev@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.