Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Issue 2348793003: Introduce git merge driver for the blink reformatting

Created:
4 years, 3 months ago by Primiano Tucci (use gerrit)
Modified:
4 years, 3 months ago
Reviewers:
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Introduce git merge driver for the blink reformatting - Introduce a script (clang_format_merge_driver) that can be used as a custom merge driver (see "Defining a custom merge driver" section of https://git-scm.com/docs/gitattributes) - Automatically create a merge driver section in the .git/config of the main project, as follows: [merge "clang_format_merge_driver"] name = clang-format merge driver (http://crbug.com/574611) driver = clang_format_merge_driver %O %A %B %L %P recursive = binary Note that this change, as is, does not have any impact (other than tweaking the git config of the main project). This custom merge driver is not used until somebody edits a .gitattributes file adding a line like: *.cpp merge=clang_format_merge_driver BUG=574611

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -3 lines) Patch
A + clang_format_merge_driver View 1 chunk +3 lines, -1 line 0 comments Download
A + clang_format_merge_driver.bat View 2 chunks +2 lines, -2 lines 0 comments Download
A clang_format_merge_driver.py View 1 chunk +36 lines, -0 lines 0 comments Download
M gclient.py View 1 chunk +22 lines, -0 lines 0 comments Download

Powered by Google App Engine
This is Rietveld 408576698