mojombo/grit — pull request #97 by blambeau (2011-10-14 16:05:51+00:00)
Title: Add StatusFile::ignored

Hi!

Here is a patch proposal to add a StatusFile::ignored flag, in addition to StatusFile::untracked. The aim is to allow distinguishing untracked files that are ignored from those that are not.

I've first enhanced the test_index_status.rb test so as to preserve backward compatibility with 2.4.1. I'm pretty sure that the behavior is exactly the same as before, except for the new flag of course.

The implementation relies on "ls-diff --others". Some hacks are needed there to correctly identify the different cases that might arrive...

Anyway, let me know if the feature looks interesting enough to be added, and if yes, whether the implementation must be changed in any way (I guess so).

Thanks!