nit icon indicating copy to clipboard operation
nit copied to clipboard

Use git commands to ignore changed files.

Open tmcgilchrist opened this issue 12 years ago • 1 comments

Hey Nik,

You could probably simplify the ignore functionality by using the built in git commands

To ignore something: git update-index --assume-unchanged <file_to_ignore>

To show the ignored files: git ls-files -v | grep \^h

To un-ignore the file: git update-index --no-assume-unchanged <ignored_file>

Thoughts?

tmcgilchrist avatar Aug 14 '13 03:08 tmcgilchrist

Tim, shouldn't you be working? ;)

That seems like a great idea, would definitely reduce some code in nit. You could write your own command that replaces Nit::Ignore along with beautiful tests as found here and I'd happily merge it!!!

apotonick avatar Aug 14 '13 04:08 apotonick