git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Коля Гурьев" <guriev-ns@ya.ru>
To: Junio C Hamano <gitster@pobox.com>
Cc: Eric Sunshine <sunshine@sunshineco.com>, Git List <git@vger.kernel.org>
Subject: [PATCH v2] status: -i shorthand for --ignored command line option
Date: Mon, 13 Aug 2018 08:02:47 +0300	[thread overview]
Message-ID: <a178d91c-74dd-e04a-8db3-70cd75ad6793@ya.ru> (raw)
In-Reply-To: <xmqqpnyrczo8.fsf@gitster-ct.c.googlers.com>

09.08.2018 18:44, Junio C Hamano пишет:
> Unlike "-u', "-i" is supported by "git commit" which shares the
> underlying implementation, and that is the historical reason why we
> never had "-i" shorthand, I think.  

git-commit supports the -u flag, its meaning is the same as for
git-status. Although the -i flag might be confused with the --include
option of git-commit, I suggest this shortening based on first letter of
the --ignored option because git-status and git-commit are different
commands and it's more obvious shortening.

> While I do understand why sometimes "-u" is useful, especially
> "-uno", to help those whose .gitignore is not managed as well as it
> should be, I am not sure why a "typical git-status" invocation would
> ask for "--ignored" that often to require such a short-hand.

The --ignored option is often used for opposing purposes, to show all
changes in working directory regardless of .gitignore files which may be
written sloppy. I've discovered that I type this option quite
frequently, and I hope my case may help others.




  reply	other threads:[~2018-08-13  5:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180804181539.29536-1-guriev-ns@ya.ru>
2018-08-08  6:39 ` [PATCH] status: -i shorthand for --ignored command line option Nicholas Guriev
2018-08-08  7:34   ` Eric Sunshine
2018-08-09  6:21     ` [PATCH v2] " Nicholas Guriev
2018-08-09 15:44       ` Junio C Hamano
2018-08-13  5:02         ` Коля Гурьев [this message]
2018-08-13 16:46           ` 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=a178d91c-74dd-e04a-8db3-70cd75ad6793@ya.ru \
    --to=guriev-ns@ya.ru \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=sunshine@sunshineco.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).