Ajout bash-completion
[hvlinux.git] / stage3 / pkg / git
index 3f8ea78..f17feb5 100644 (file)
@@ -2,7 +2,30 @@
 
 hvbuild_post()
 {
+    install -v -m644 ${SCRDIR}/misc/git-completion.bash \
+        /etc/bash_completion.d
+
     local GIT_MANPAGES="git-manpages-$(get_pkg_ver ${PACKAGE})"
 
     decompress_package ${GIT_MANPAGES} /usr/share/man
+
+    cat > /etc/gitconfig << "EOF"
+[color]
+    branch = auto
+    diff = auto
+    interactive = auto
+    status = auto
+
+[core]
+    editor = emacs
+
+[push]
+    # Pushes will go to the same place that pulls come from:
+    default = tracking
+
+[diff]
+    # Enable rename and copies detection
+    renames = copy
+
+EOF
 }