Repo Status output

225 views
Skip to first unread message

Aravind

unread,
Jan 15, 2009, 8:17:42 AM1/15/09
to Repo and Gerrit Discussion
Hello All

I have some files which i need to ignore while i commit.
Hence in git we have a option of adding these files names or
extensions in .git/info/exclude files.
After adding the file extensions to ignore in this file git status
does not show it up.
But repo status shows it.

Is there a way in which i can avoid repo status not to list these
ignored files?

Thanks and Regards
Aravind

Shawn Pearce

unread,
Jan 15, 2009, 10:11:26 AM1/15/09
to repo-d...@googlegroups.com
On Thu, Jan 15, 2009 at 05:17, Aravind <amah...@gmail.com> wrote:

I have some files which i need to ignore while i commit.
Hence in git we have a option of adding these files names or
extensions in .git/info/exclude files.
After adding the file extensions to ignore in this file git status
does not show it up.
But repo status shows it.

Huh.  I just did that yesterday in repo (added "/target" to my .git/info/exclude) and "repo status" stopped reporting on the directory.  repo uses "git ls-files --others --exclude-standard" to make sure it honors .git/info/exclude and .gitignore just like git itself does.  The --exclude-standard option was added in Git 1.5.4.
 
Is there a way in which i can avoid repo status not to list these
ignored files?

Upgrade to a more recent Git, like 1.5.4 or later? I'm suspecting you are on a 1.5.3 or earlier.  But I'm surprised that earlier git ls-files didn't choke on the unrecognized --exclude-standard flag.

Reply all
Reply to author
Forward
0 new messages