All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthieu Moy <Matthieu.Moy@imag.fr>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [BUG] (minor) "git status ." reports added files as untracked
Date: Tue, 05 Feb 2008 07:08:17 +0100	[thread overview]
Message-ID: <vpqy7a00wby.fsf@bauges.imag.fr> (raw)
In-Reply-To: <7v7ihkjtvg.fsf@gitster.siamese.dyndns.org> (Junio C. Hamano's message of "Mon\, 04 Feb 2008 13\:26\:27 -0800")

Junio C Hamano <gitster@pobox.com> writes:

> Matthieu Moy <Matthieu.Moy@imag.fr> writes:
>
>> Indeed, I've always considered the fact that "git status ." reports
>> untracked files outside the current directory as a bug, but I'm not
>> sure whether this is intended or not.
>
> It is intended.
>
> "git status $args" was designed as "show me what happens if I
> ran 'git commit $args' now", and because a commit is a whole
> tree operation, 

I don't understand the point: "git commit" doesn't care about
untracked files. So if "git status" would really only "show me what
happens if I run git commit now", it wouldn't show untracked files, at
all.

Showing untracked files is status is IMHO a good thing, it helps me to
see if I forget to "git add" something. But if I explicitely ask for a
limited commit, I really mean I don't care about what happens outside
the directory I'm commiting.

-- 
Matthieu

  reply	other threads:[~2008-02-05  6:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-04 17:19 [BUG] (minor) "git status ." reports added files as untracked Matthieu Moy
2008-02-04 21:26 ` Junio C Hamano
2008-02-05  6:08   ` Matthieu Moy [this message]
2008-03-26 23:07   ` Eddy Petrișor

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=vpqy7a00wby.fsf@bauges.imag.fr \
    --to=matthieu.moy@imag.fr \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.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 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.