Patchwork D1004: bdiff: format header file with clang-format

login
register
mail settings
Submitter phabricator
Date Oct. 11, 2017, 2:59 p.m.
Message ID <differential-rev-PHID-DREV-bno7qy2cg7xddukkgmnf-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/24741/
State Accepted
Headers show

Comments

phabricator - Oct. 11, 2017, 2:59 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/bdiff.h

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel
phabricator - Oct. 12, 2017, 11:09 a.m.
ryanmce added inline comments.

INLINE COMMENTS

> bdiff.h:18
>  int bdiff_diff(struct bdiff_line *a, int an, struct bdiff_line *b, int bn,
> -	struct bdiff_hunk *base);
> +               struct bdiff_hunk *base);
>  void bdiff_freehunks(struct bdiff_hunk *l);

This doesn't show up in Differential unless you choose the "show all whitespace" option.

REPOSITORY
  rHG Mercurial

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

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

Patch

diff --git a/mercurial/bdiff.h b/mercurial/bdiff.h
--- a/mercurial/bdiff.h
+++ b/mercurial/bdiff.h
@@ -15,7 +15,7 @@ 
 
 int bdiff_splitlines(const char *a, ssize_t len, struct bdiff_line **lr);
 int bdiff_diff(struct bdiff_line *a, int an, struct bdiff_line *b, int bn,
-	struct bdiff_hunk *base);
+               struct bdiff_hunk *base);
 void bdiff_freehunks(struct bdiff_hunk *l);
 
 #endif