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

Issue 2359933005: DEPS hook for installing the clang-format merge driver. (Closed)

Created:
4 years, 2 months ago by dcheng
Modified:
4 years, 2 months ago
Reviewers:
Nico
CC:
chromium-reviews, iannucci, Dirk Pranke
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DEPS hook for installing the clang-format merge driver. This hook automatically installs and maintains a merge tool config for the clang-format merge driver, which can help automatically resolve conflicts that arise from clang-format reformatting patches. Note that this change does not have any impact other than tweaking the git config of the main project). The custom merge driver will later be activated by updating .gitattributes with lines like: *.cpp merge=clang-format *.h merge=clang-format BUG=574611 Committed: https://crrev.com/3db0d1dfa2532a7c7380f9c15deef1c3fe0139e5 Cr-Commit-Position: refs/heads/master@{#420704}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : Delete print statement #

Patch Set 4 : Unformatted but works on Windows #

Patch Set 5 : Nicely formatted #

Patch Set 6 : Nicely formatted with no copy finding #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -0 lines) Patch
M DEPS View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A tools/clang_format_merge_driver/OWNERS View 1 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A tools/clang_format_merge_driver/install_git_hook.py View 1 2 3 4 1 chunk +56 lines, -0 lines 2 comments Download

Messages

Total messages: 16 (3 generated)
dcheng
Split off from https://codereview.chromium.org/2356933002/ and incorporated as a DEPS hook instead. Note that I left ...
4 years, 2 months ago (2016-09-22 07:52:37 UTC) #2
Nico
https://codereview.chromium.org/2359933005/diff/20001/tools/clang_format_merge_driver/install_git_hook.py File tools/clang_format_merge_driver/install_git_hook.py (right): https://codereview.chromium.org/2359933005/diff/20001/tools/clang_format_merge_driver/install_git_hook.py#newcode23 tools/clang_format_merge_driver/install_git_hook.py:23: print 'Skipping...' this is probably fast enough that we ...
4 years, 2 months ago (2016-09-22 13:22:37 UTC) #3
Nico
but lgtm as-is too if you'd rather have the actual merge driver in depot_tools – ...
4 years, 2 months ago (2016-09-22 13:24:24 UTC) #4
dcheng
On 2016/09/22 13:24:24, Nico wrote: > but lgtm as-is too if you'd rather have the ...
4 years, 2 months ago (2016-09-22 17:08:53 UTC) #5
Nico
This can be cq+'d, yes?
4 years, 2 months ago (2016-09-23 15:27:55 UTC) #6
dcheng
On 2016/09/23 15:27:55, Nico wrote: > This can be cq+'d, yes? I want to do ...
4 years, 2 months ago (2016-09-23 16:12:06 UTC) #7
dcheng
Alright, I fixed the Windows stuff and did more testing than GLaDOS. PTAL.
4 years, 2 months ago (2016-09-23 18:01:28 UTC) #8
Nico
Nice patch set descriptions. https://codereview.chromium.org/2359933005/diff/100001/tools/clang_format_merge_driver/install_git_hook.py File tools/clang_format_merge_driver/install_git_hook.py (right): https://codereview.chromium.org/2359933005/diff/100001/tools/clang_format_merge_driver/install_git_hook.py#newcode17 tools/clang_format_merge_driver/install_git_hook.py:17: cmd.append('git.bat') will this work on ...
4 years, 2 months ago (2016-09-23 18:05:35 UTC) #9
dcheng
https://codereview.chromium.org/2359933005/diff/100001/tools/clang_format_merge_driver/install_git_hook.py File tools/clang_format_merge_driver/install_git_hook.py (right): https://codereview.chromium.org/2359933005/diff/100001/tools/clang_format_merge_driver/install_git_hook.py#newcode17 tools/clang_format_merge_driver/install_git_hook.py:17: cmd.append('git.bat') On 2016/09/23 18:05:35, Nico wrote: > will this ...
4 years, 2 months ago (2016-09-23 18:46:55 UTC) #10
Nico
a'ight, lgtm :-)
4 years, 2 months ago (2016-09-23 18:48:13 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2359933005/100001
4 years, 2 months ago (2016-09-23 18:50:17 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-09-23 19:52:27 UTC) #14
commit-bot: I haz the power
4 years, 2 months ago (2016-09-23 19:55:21 UTC) #16
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3db0d1dfa2532a7c7380f9c15deef1c3fe0139e5
Cr-Commit-Position: refs/heads/master@{#420704}

Powered by Google App Engine
This is Rietveld 408576698