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

[PATCH] builtin-commit.c: add -u as short name for --untracked-files

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
May 9, 2008, 17:12 UTC
Message-ID
<20080509171258.6257E406A1@sita-laptop.atc.tcs.com>

This makes the C code consistent with the documentation and the old shell code.

Signed-off-by: Sitaram Chamarty <sitaramc@gmail.com>
---
 builtin-commit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-commit.c b/builtin-commit.c
index 256181a..b79ff9c 100644
--- a/builtin-commit.c
+++ b/builtin-commit.c
@@ -101,7 +101,7 @@ static struct option builtin_commit_options[] = {
 	OPT_BOOLEAN('o', "only", &only, "commit only specified files"),
 	OPT_BOOLEAN('n', "no-verify", &no_verify, "bypass pre-commit hook"),
 	OPT_BOOLEAN(0, "amend", &amend, "amend previous commit"),
-	OPT_BOOLEAN(0, "untracked-files", &untracked_files, "show all untracked files"),
+	OPT_BOOLEAN('u', "untracked-files", &untracked_files, "show all untracked files"),
 	OPT_BOOLEAN(0, "allow-empty", &allow_empty, "ok to record an empty change"),
 	OPT_STRING(0, "cleanup", &cleanup_arg, "default", "how to strip spaces and #comments from message"),
 
-- 
1.5.5.1.178.g1f811.dirty
Message 1 of 1 in “builtin-commit.c: add -u as short name for --untracked-files”
  1. builtin-commit.c: add -u as short name for --untracked-filesSitaram Chamarty, May 9, 2008

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.