[SERVER-36193] Add format-my mode to clang_format.py to only format local changes Created: 19/Jul/18  Updated: 29/Oct/23  Resolved: 24/Jul/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.1.2

Type: Task Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Platforms 2018-08-13
Participants:

 Description   

Current buildscripts/clang_format.py offers a format command which formats all files known to git. While this works regardless of local git repo setup, it is slow because it has to look at ~3900 files.

Performance can be improved by offering a new command that only looks at files that changed since the current branch has forked from origin/master.



 Comments   
Comment by Githook User [ 24/Jul/18 ]

Author:

{'username': 'markbenvenuto', 'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com'}

Message: SERVER-36193 Add format-my mode to clang_format.py to only format local changes
Branch: master
https://github.com/mongodb/mongo/commit/d179b063b233f970b30acae8fbc53f33f7d60806

Generated at Thu Feb 08 04:42:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.