From 2aed8ddbe5ec4ed8da248a10feeced85a4e97e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Rodri=CC=81guez=20Troitin=CC=83o?= Date: Tue, 10 Dec 2013 01:01:36 +0100 Subject: [PATCH] Append Typhoon header when adding/modifying files. Remove standard Xcode header if found. --- .gitattributes | 3 ++- Scripts/typhoonheader | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100755 Scripts/typhoonheader diff --git a/.gitattributes b/.gitattributes index a198d45d6..545d0b780 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ -*.pbxproj binary merge=union \ No newline at end of file +*.pbxproj binary merge=union +*.[hm] filter=typhoonheader diff --git a/Scripts/typhoonheader b/Scripts/typhoonheader new file mode 100755 index 000000000..e3cf2ce4a --- /dev/null +++ b/Scripts/typhoonheader @@ -0,0 +1,41 @@ +#!/usr/bin/env ruby -wKU + +# To use this script, add the following keys to your local config. +# git config filter.typhoonheader.smudge 'cat' +# git config filter.typhoonheader.clean '`git rev-parse --git-dir`/../scripts/typhoonheader' + +TYPHOON_HEADER = <