• Yannic Bonenberger's avatar
    Improve git cl split · 68409634
    Yannic Bonenberger authored
    This CL changes the behavior of `git cl split` to split the change
    by the size of the resulting CLs. For now, this is based on the number
    of bytes changed, and not by the number of changed lines. Depending
    on the shape of change, this may still produce more CLs than expected
    (and possibly more than before).
    
    A future change will switch the split to be based on the number
    of affected lines, and also introduce a mode to base the split
    on the number of affected files.
    
    Bug: 998922
    Change-Id: I49f868972a61b89b426ef9e2ceedc733eacb4350
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1778744
    Commit-Queue: Yannic Bonenberger <yannic.bonenberger@gmail.com>
    Reviewed-by: 's avatarDirk Pranke <dpranke@chromium.org>
    68409634
presubmit_support.py 63.8 KB