nit
nit copied to clipboard
Use git commands to ignore changed files.
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?
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!!!