From: Junio C Hamano Date: Fri, 03 Jun 2016 16:34:00 GMT Subject: Re: [PATCH v3 2/2] completion: add git status Message-ID: In-Reply-To: <8f5e515b-8efc-0160-820e-d81885fc6c36@virtuell-zuhause.de> Thomas Braun writes: >>> + if [ -n "$(__git_find_on_cmdline "--ignored")" ]; then >> >> Same question as the "--untracked-files=no vs -uno" applies here. > > Is there a short version of --ignored? I could not find one in the help, > and from a look into cmd_status in commit.c I would say there is none. I was primarily wondering about the effect of parse-options have. It lets you truncate a long option to its unique prefix (e.g. "--untracked-files=all" can be spelled as "--unt=all"). It seems that "--ignored" must be spelled in full, which means the use of find-on-cmdline we see above is OK, but the reason why it is so is a bit subtle. It may deserve a comment there, perhaps. [Footnote] *1* The reason is because "--ignored" happens to be the shortest truncation of "--ignored" in order to disambiguate it from "--ignore-submodules".