Subject: Re: A Basic Git Question About File Tracking

From: Jon Forrest <[email-masked]>
Date: Mon, 03 Oct 2011 18:14:24 -0700

On 10/3/2011 6:10 PM, Jonathan Nieder wrote:
> Hi!

Thanks for the quick reply.

> Jon Forrest wrote:
>
>> The Pro Git book says "Untracked basically means that Git sees a
>> file you didn’t have in the previous snapshot (commit)".
>
> Yep, that's a bug in the Pro Git book.  "Untracked" means "not in
> the index", nothing more, nothing less.

But your definition doesn't include files that
have been committed. In the following trivial case
in a new git repository

cp /etc/passwd x
git add x
git commit -m"fooling around"

is "x" tracked? Your definition says it isn't
but "git status" makes me think it is.

Sorry to be so pedantic.

Jon