1026: RFE: Add ability to ignore files in a patch
- Fixed
- Review Board
jeff****@gmai***** (Google Code) (Is this you? Claim this profile.) | |
Sept. 30, 2014 | |
2050, 2188 |
We've automated the post-review.py command line by autopopulating fields based upon our Eclipse project and local settings. However, sometimes workspace-specific files get erroneously uploaded, like .project and .cproject (these are eclipse projects.) We can manually type the paths in or omit certain files manually, but it'd be nice to have a "ignore these files" button in the "Files Changed" list in the draft diff view. I believe Crucible has this functionality, by the way.
Adding it to post-review.py would be equally acceptable.
post-review would probably be the right place for this, though I could imagine an extension that let you edit your diff beforehand.
-
+ Confirmed -
- Type-Defect + Type-Enhancement + Milestone-Release1.5 + ExtensionIdea + Component-RBTools
Is anyone aware of ongoing projects to add something to .reviewboardrc to have a filter/exclusion list (a la .gitignore ?) and then have rb tools obey that setting ? I'd like to help take a look at any such work or help out if I can :-)
I'd love this feature. My use case is an iOS project that uses CocoaPods to handle dependencies and we commit the dependencies, so we'd like to exclude the dependencies source code from reviews. Would be something like `--exclude Pods/**/*`.
This came up today with someone on RBCommons. There's definitely work we'd have to do to filter changes from diffs, but we should add an option for this and perhaps a .rbtignore file.
Would it be possible to add it as a repository level setting (in the admin menu). The server can look at the repository setting for excludes and then remove those from doing a diff. This allows people who upload or pull from existing commits or rbt. I can look at doing a patch if it helps.