From: Matthieu Moy <Matthieu.Moy@imag.fr>
To: git@vger.kernel.org
Subject: [BUG] (minor) "git status ." reports added files as untracked
Date: Mon, 04 Feb 2008 18:19:09 +0100 [thread overview]
Message-ID: <vpqtzko8ws2.fsf@bauges.imag.fr> (raw)
Hi,
I have a minor bug with git (head of master today): Briefly, added
files in a toplevel directory show up as "untracked" for
"git status ." in a subdirectory. See below to reproduce.
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. If not, then not looking for
untracked files oustide the directory when doing a limited "status"
would be a fix.
No time for a patch, appologize :-(.
/tmp/test$ git init
Initialized empty Git repository in .git/
/tmp/test$ mkdir subdir
/tmp/test$ touch file1
/tmp/test$ git add file1
/tmp/test$ touch subdir/file2
/tmp/test$ cd subdir/
/tmp/test/subdir$ git add file2
/tmp/test/subdir$ git status .
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# new file: file2
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# ../file1 <------------------- this one
shouldn't be here
/tmp/test/subdir$ git status
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# new file: ../file1
# new file: file2
#
Regards,
--
Matthieu
next reply other threads:[~2008-02-04 17:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-04 17:19 Matthieu Moy [this message]
2008-02-04 21:26 ` [BUG] (minor) "git status ." reports added files as untracked Junio C Hamano
2008-02-05 6:08 ` Matthieu Moy
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=vpqtzko8ws2.fsf@bauges.imag.fr \
--to=matthieu.moy@imag.fr \
--cc=git@vger.kernel.org \
/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.