summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitattributes2
-rwxr-xr-xg3
2 files changed, 5 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 000000000000..416fa8c63b14
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,2 @@
+*.doc binary
+*.sdw binary
diff --git a/g b/g
index a832fd2ee604..7fbf6834764d 100755
--- a/g
+++ b/g
@@ -35,6 +35,9 @@ function update_hooks()
if [ -z "$(git config push.default)" ] ; then
git config push.default tracking
fi
+ if [ "$PWD" != "$RAWBUILDDIR" -a ! -e .gitattributes ]; then
+ ln -s $RAWBUILDDIR/.gitattributes .
+ fi
}
# extra params for some commands, like log