git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] status: -i shorthand for --ignored command line option

From
Nicholas Guriev <guriev-ns@ya.ru>
Date
Aug 8, 2018, 06:39 UTC
Message-ID
<20180808063926.11911-1-guriev-ns@ya.ru>
In-Reply-To
<20180804181539.29536-1-guriev-ns@ya.ru>

This short option saves the number of keys to press for the typically git-status command. --- I already sent the patch here, but it doesn't seem reached to the list. So I send the email (now with DKIM) again and apologize if you get this twice.

 builtin/commit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/commit.c b/builtin/commit.c
index 158e3f8..44829b9 100644
--- a/builtin/commit.c
+++ b/builtin/commit.c
@@ -1319,7 +1319,7 @@ int cmd_status(int argc, const char **argv, const char *prefix)
 		  N_("mode"),
 		  N_("show untracked files, optional modes: all, normal, no. (Default: all)"),
 		  PARSE_OPT_OPTARG, NULL, (intptr_t)"all" },
-		{ OPTION_STRING, 0, "ignored", &ignored_arg,
+		{ OPTION_STRING, 'i', "ignored", &ignored_arg,
 		  N_("mode"),
 		  N_("show ignored files, optional modes: traditional, matching, no. (Default: traditional)"),
 		  PARSE_OPT_OPTARG, NULL, (intptr_t)"traditional" },
-- 
2.7.4
Next: Eric Sunshine
Message 1 of 6 in “status: -i shorthand for --ignored command line option”
  1. status: -i shorthand for --ignored command line optionNicholas Guriev, Aug 8, 2018
  2. Eric SunshineAug 8, 2018
  3. status: -i shorthand for --ignored command line optionNicholas Guriev, Aug 9, 2018
  4. Junio C HamanoAug 9, 2018
  5. status: -i shorthand for --ignored command line optionКоля Гурьев, Aug 13, 2018
  6. Junio C HamanoAug 13, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.