All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* mismatch between doc and program in git commit -u (--untracked-files)
@ 2008-05-08 10:10 Sitaram Chamarty
  2008-05-08 16:13 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Sitaram Chamarty @ 2008-05-08 10:10 UTC (permalink / raw
  To: git

Hello,

The doc for commit says "-u" is a suitable abbreviation for
--untracked-files, but only the latter works.

I'll submit a patch, but being new, I thought I'd ask which is correct
-- the doc or the code?

Thanks,

Sitaram

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mismatch between doc and program in git commit -u (--untracked-files)
  2008-05-08 10:10 mismatch between doc and program in git commit -u (--untracked-files) Sitaram Chamarty
@ 2008-05-08 16:13 ` Jeff King
  2008-05-09 17:26   ` Sitaram Chamarty
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff King @ 2008-05-08 16:13 UTC (permalink / raw
  To: Sitaram Chamarty; +Cc: git

On Thu, May 08, 2008 at 03:40:14PM +0530, Sitaram Chamarty wrote:

> The doc for commit says "-u" is a suitable abbreviation for
> --untracked-files, but only the latter works.
> 
> I'll submit a patch, but being new, I thought I'd ask which is correct
> -- the doc or the code?

Looks like it got lost in the C rewrite of git-commit:

  $ git grep untracked-files builtin-commit.c
  builtin-commit.c:       OPT_BOOLEAN(0, "untracked-files", &untracked_files, "show all untracked files"),

  $ git grep -B2 contrib/examples/git-commit.sh
  contrib/examples/git-commit.sh- -u|--u|--un|--unt|--untr|--untra|--untrac|--untrack|--untracke|\
  contrib/examples/git-commit.sh- --untracked|--untracked-|--untracked-f|--untracked-fi|--untracked-fil|\
  contrib/examples/git-commit.sh: --untracked-file|--untracked-files)

So it should probably be supported. The patch is a one-liner, but I'll
leave it as an exercise for you. :)

-Peff

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mismatch between doc and program in git commit -u (--untracked-files)
  2008-05-08 16:13 ` Jeff King
@ 2008-05-09 17:26   ` Sitaram Chamarty
  0 siblings, 0 replies; 3+ messages in thread
From: Sitaram Chamarty @ 2008-05-09 17:26 UTC (permalink / raw
  To: git

On Thu, May 8, 2008 at 9:43 PM, Jeff King <peff@peff.net> wrote:
> On Thu, May 08, 2008 at 03:40:14PM +0530, Sitaram Chamarty wrote:
>> The doc for commit says "-u" is a suitable abbreviation for
>> --untracked-files, but only the latter works.
>>
>> I'll submit a patch, but being new, I thought I'd ask which is correct
>> -- the doc or the code?

> So it should probably be supported. The patch is a one-liner, but I'll
> leave it as an exercise for you. :)

:)

Due to my using gmail which doesn't leave the whitespace alone, I had
to resort to the clumsy trick of doing a "sendmail -oi -t -f
sitaramc@gmail.com" from my home machine, and vger's SMTP listener
decided to greylist the mail.

It'll come through eventually, assuming I keep my laptop switched on
long enough!

(Although pobox.com seems to have accepted it OK.)

Sitaram

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-05-09 17:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-08 10:10 mismatch between doc and program in git commit -u (--untracked-files) Sitaram Chamarty
2008-05-08 16:13 ` Jeff King
2008-05-09 17:26   ` Sitaram Chamarty

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.