]> git.ipfire.org Git - thirdparty/git.git/commit
git-completion.bash: extract from else in _git_stash()
authorDenton Liu <liu.denton@gmail.com>
Wed, 24 Mar 2021 08:36:28 +0000 (01:36 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Mar 2021 17:05:47 +0000 (10:05 -0700)
commit42b30bcbb7929527631225a89a5630057535d766
treed046149d9bd6fa737d03faef6b48de37b47b28d6
parente94fb4404280c07a668b4669c072983cdd079592
git-completion.bash: extract from else in _git_stash()

To save a level of indentation, perform an early return in the "if" arm
so we can move the "else" code out of the block.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash