From 8365f7000edcb8b43ed57192baacd9a658792b12 Mon Sep 17 00:00:00 2001 From: Kirill Smelkov Date: Sun, 13 Mar 2011 18:43:43 +0300 Subject: [PATCH] textconv: stub driver for rtf At least it won't crash diff, untill we integrate unrtf (or something similar) into msysgit distribution. Signed-off-by: Kirill Smelkov Signed-off-by: Johannes Schindelin --- bin/astextplain | 4 ++++ etc/gitattributes | 1 + 2 files changed, 5 insertions(+) diff --git a/bin/astextplain b/bin/astextplain index ec52d8ae..5e0c79e0 100644 --- a/bin/astextplain +++ b/bin/astextplain @@ -14,6 +14,10 @@ case "$1" in *.pdf | *.PDF) pdftotext -layout "$1" -enc UTF-8 - ;; + # TODO add rtf support + *.rtf | *.RTF) + cat "$1" + ;; *) echo "E: unsupported filetype $1" 1>&2 exit 1 diff --git a/etc/gitattributes b/etc/gitattributes index 56ec9582..d03c9266 100644 --- a/etc/gitattributes +++ b/etc/gitattributes @@ -5,3 +5,4 @@ *.pdf diff=astextplain *.PDF diff=astextplain *.rtf diff=astextplain +*.RTF diff=astextplain -- 2.11.4.GIT