{"thread":{"id":"13429","subject":"mismatch between doc and program in git commit -u (--untracked-files)","startedAt":"2008-05-08T10:10:14Z","lastAt":"2008-05-09T17:26:57Z","messageCount":3,"participants":["Sitaram Chamarty","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"76364","messageId":"2e24e5b90805080310p2cb77814i45a418a0cfc8a2c@mail.gmail.com","threadId":"13429","inReplyTo":null,"subject":"mismatch between doc and program in git commit -u (--untracked-files)","fromName":"Sitaram Chamarty","fromEmail":"sitaramc@gmail.com","sentAt":"2008-05-08T10:10:14Z","receivedAt":"2008-05-08T10:10:14Z","isPatch":false,"sender":{"key":"sitaramc@gmail.com","avatar":"https://avatars.githubusercontent.com/u/43316?v=4"},"body":"Hello,\n\nThe doc for commit says \"-u\" is a suitable abbreviation for\n--untracked-files, but only the latter works.\n\nI'll submit a patch, but being new, I thought I'd ask which is correct\n-- the doc or the code?\n\nThanks,\n\nSitaram\n"},{"id":"76378","messageId":"20080508161342.GB28701@sigill.intra.peff.net","threadId":"13429","inReplyTo":"2e24e5b90805080310p2cb77814i45a418a0cfc8a2c@mail.gmail.com","subject":"Re: mismatch between doc and program in git commit -u (--untracked-files)","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2008-05-08T16:13:42Z","receivedAt":"2008-05-08T16:13:42Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, May 08, 2008 at 03:40:14PM +0530, Sitaram Chamarty wrote:\n\n> The doc for commit says \"-u\" is a suitable abbreviation for\n> --untracked-files, but only the latter works.\n> \n> I'll submit a patch, but being new, I thought I'd ask which is correct\n> -- the doc or the code?\n\nLooks like it got lost in the C rewrite of git-commit:\n\n  $ git grep untracked-files builtin-commit.c\n  builtin-commit.c:       OPT_BOOLEAN(0, \"untracked-files\", &untracked_files, \"show all untracked files\"),\n\n  $ git grep -B2 contrib/examples/git-commit.sh\n  contrib/examples/git-commit.sh- -u|--u|--un|--unt|--untr|--untra|--untrac|--untrack|--untracke|\\\n  contrib/examples/git-commit.sh- --untracked|--untracked-|--untracked-f|--untracked-fi|--untracked-fil|\\\n  contrib/examples/git-commit.sh: --untracked-file|--untracked-files)\n\nSo it should probably be supported. The patch is a one-liner, but I'll\nleave it as an exercise for you. :)\n\n-Peff\n"},{"id":"76470","messageId":"2e24e5b90805091026l30f8802ek6e97d5ad0d3e0c1e@mail.gmail.com","threadId":"13429","inReplyTo":"20080508161342.GB28701@sigill.intra.peff.net","subject":"Re: mismatch between doc and program in git commit -u (--untracked-files)","fromName":"Sitaram Chamarty","fromEmail":"sitaramc@gmail.com","sentAt":"2008-05-09T17:26:57Z","receivedAt":"2008-05-09T17:26:57Z","isPatch":false,"sender":{"key":"sitaramc@gmail.com","avatar":"https://avatars.githubusercontent.com/u/43316?v=4"},"body":"On Thu, May 8, 2008 at 9:43 PM, Jeff King <peff@peff.net> wrote:\n> On Thu, May 08, 2008 at 03:40:14PM +0530, Sitaram Chamarty wrote:\n>> The doc for commit says \"-u\" is a suitable abbreviation for\n>> --untracked-files, but only the latter works.\n>>\n>> I'll submit a patch, but being new, I thought I'd ask which is correct\n>> -- the doc or the code?\n\n> So it should probably be supported. The patch is a one-liner, but I'll\n> leave it as an exercise for you. :)\n\n:)\n\nDue to my using gmail which doesn't leave the whitespace alone, I had\nto resort to the clumsy trick of doing a \"sendmail -oi -t -f\nsitaramc@gmail.com\" from my home machine, and vger's SMTP listener\ndecided to greylist the mail.\n\nIt'll come through eventually, assuming I keep my laptop switched on\nlong enough!\n\n(Although pobox.com seems to have accepted it OK.)\n\nSitaram\n"}]}