Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-36193

Add format-my mode to clang_format.py to only format local changes

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Platforms 2018-08-13

      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.

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: