[kupfer] Add instructions about .po comment filtering to .gitattributes



commit bc92b162bf90bc32e7ec3845508190706dff226d
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Fri Jun 4 23:03:12 2010 +0200

    Add instructions about .po comment filtering to .gitattributes

 .gitattributes |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/.gitattributes b/.gitattributes
index 18ac013..a15de41 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -2,6 +2,17 @@
 /.gitattributes		export-ignore
 /debug.py		export-ignore
 
+# Filter .po files before committing
+# The filter will remove all filename:line comments when
+# translation files are committed, to make the diffs clearer
+# To enable this, add the following section to .git/config
+# in this repository (without leading '#' of course):
+#
+# [filter "cleanpo"]
+#      clean = grep -v -E "^#: "
+#
+# This filter must be configured for all editors and committers
+# of the language. The .po file must be explicitly listed below.
 /po/en_GB.po		filter=cleanpo
 /po/sv.po		filter=cleanpo
 /po/pl.po		filter=cleanpo



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]