Patchwork D1132: mpatch: switch alignment of wrapped line from tab to spaces with clang-format

login
register
mail settings
Submitter phabricator
Date Oct. 17, 2017, 1:53 a.m.
Message ID <differential-rev-PHID-DREV-xk3b2ktejrx46egbkqgr-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/25069/
State Superseded
Headers show

Comments

phabricator - Oct. 17, 2017, 1:53 a.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  I may be a weird person for liking this style, but our C style is
  historically nominally the Linux Kernel style, and when you configure
  clang-format to be kernel-ish, this is what you get. If we want to
  change it, we can do so by tweaking the formatter rules in the future.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1132

AFFECTED FILES
  mercurial/mpatch.c

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel
phabricator - Oct. 17, 2017, 11:45 a.m.
ryanmce accepted this revision.
ryanmce added a comment.
This revision is now accepted and ready to land.


  queued

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1132

To: durin42, #hg-reviewers, ryanmce
Cc: ryanmce, mercurial-devel

Patch

diff --git a/mercurial/mpatch.c b/mercurial/mpatch.c
--- a/mercurial/mpatch.c
+++ b/mercurial/mpatch.c
@@ -275,5 +275,5 @@ 
 	/* divide and conquer, memory management is elsewhere */
 	len = (end - start) / 2;
 	return combine(mpatch_fold(bins, get_next_item, start, start + len),
-		       mpatch_fold(bins, get_next_item, start + len, end));
+	               mpatch_fold(bins, get_next_item, start + len, end));
 }