[SERVER-23914] Implement reformat-branch clang-format command Created: 25/Apr/16 Updated: 14/Jul/16 Resolved: 01/Jun/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 3.3.8 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Mark Benvenuto | Assignee: | Mark Benvenuto |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Platforms 14 (05/13/16), Platforms 15 (06/03/16) |
| Participants: |
| Description |
|
lang_format.py script will have a new command: reformat-branch <no arguments> Reformat-branch will reformat an existing branch by applying clang-format to an existing set of changes in a branch. In order to work the script will need to know a suitable start point. The suitable start point will be the hash of the change that updates .clang-format to the new style format. This will be followed by an update of the script itself with the new hash to use as the starting point after the reformat commit has happened. The commits will be in git in the following order:
Note: Yes lint will break on change 2, but I do not want one super change. The script will do the following steps:
|
| Comments |
| Comment by Githook User [ 30/May/16 ] |
|
Author: {u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}Message: |
| Comment by Githook User [ 28/May/16 ] |
|
Author: {u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}Message: |