[PATCH 4/8] winemac.drv: Tell git's diff engine to recognize Objective-C source files.

Ken Thomases ken at codeweavers.com
Sun Dec 16 18:07:36 CST 2012


The diff engine already has built-in smarts about how to annotate diffs of
Objective-C source files, but it needs to be told which files to apply those
smarts to.  (Otherwise, its default is a pattern appropriate for C syntax.)
For example, it will annotate diff hunks with headers showing the signature
of the method or the @implementation or @interface line preceding the hunk.
E.g.:

   @@ -1167,17 +1188,39 @@ - (void)someMethod

See the gitattributes man page for details.
---
dlls/winemac.drv/.gitattributes |    2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
create mode 100644 dlls/winemac.drv/.gitattributes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-winemac.drv-Tell-git-s-diff-engine-to-recognize-Obje.patch
Type: text/x-patch
Size: 221 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20121216/092bc120/attachment.bin>


More information about the wine-patches mailing list