5

4

I have a bunch of minified JavaScript in my repository, or maybe just a file that has constant churn that I just don't honestly care about. The thing is, the diffs are always huge, and make viewing the diff of changesets kind of useless. Can I tell Kiln to just ignore those in diff views?

flag

2 Answers

7

You sure can! As of Kiln 2.4, simply check in a file called .kilnignore in the root of your repository, using exactly the same syntax as a .hgignore file. Any files you specify there will be ignored when Kiln renders diffs. But don't worry: they'll be version tracked and stored just like any other file. You'll only be changing how they're shown in Kiln. So if you later change your mind, just remove the banned file from your .kilnignore file, and it'll show up in diffs again, just as if nothing has changed.

So for example, let's say that my IDE makes solution files called LotsOChurn.solution, that I want to ignore. I also want to ignore all of my minified JavaScript, which I always make sure ends with the extension .min.js. In that case, to tell Kiln to ignore those files, I'd just put the following in my .kilnignore:

syntax:glob
LotsOChurn.solution
*.min.js

and they'll disappear from within Kiln.

link|flag
1 
This is awesome! – Rob Sobers Feb 24 2011 at 21:59
Just discovered this. Really cool idea! – Chris Taylor Aug 11 2011 at 17:22
This isn't preventing files from showing up in code reviews. I'm trying to filter out designer files and layout files (VS 2010). Here's my .kilnignore file glob:*.[Dd]esigner.cs glob:*.layout – Kyle Feb 1 2012 at 19:42
0

This isn't preventing files from showing up in code reviews. I'm trying to filter out designer files and layout files (VS 2010). Here's my .kilnignore file

glob:*.[Dd]esigner.cs
glob:*.layout

EDIT: Sorry should have been posted as a comment

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.