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

Issue 18966004: Default to using --3way when using `git cl patch` with git >= 1.7.12 (Closed)

Created:
7 years, 5 months ago by tapted
Modified:
7 years, 5 months ago
Reviewers:
Isaac (away), M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Visibility:
Public.

Description

Default to using --3way when using `git cl patch` with git >= 1.7.12 Git introduced a --3way argument to `apply` in version 1.7.12 [1]. This provides a much nicer way to apply issues from Rietveld. After this change, `git cl patch` will add --3way after checking the git version for support. [1] https://github.com/git/git/commit/f247b10aa0f75727f1b4bdd67b060720b8219b29 BUG=None TEST=Ran `git cl patch <issue>` with both clean and unclean patches, also checked behaviour of --reject is preserved. R=maruel@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210695

Patch Set 1 #

Patch Set 2 : Baseline from reverted change in http://crrev.com/16211005 #

Patch Set 3 : add a git version check ( >= 1.7.12 ) #

Patch Set 4 : rebase for r210503 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -1 line) Patch
M git_cl.py View 1 2 3 4 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
tapted
7 years, 5 months ago (2013-07-10 01:12:32 UTC) #1
M-A Ruel
thanks, lgtm
7 years, 5 months ago (2013-07-10 01:19:01 UTC) #2
tapted
Committed patchset #4 manually as r210695 (presubmit successful).
7 years, 5 months ago (2013-07-10 01:29:28 UTC) #3
Isaac (away)
7 years, 5 months ago (2013-07-10 22:11:16 UTC) #4
Message was sent while issue was closed.
Seems to cause presubmit failure: 
************* Module git_cl
C0322: 93,2:IsGitVersionAtLeast: Operator not preceded by a space
  PREFIX='git version '
        ^

Powered by Google App Engine
This is Rietveld 408576698