Ajout bash-completion
[hvlinux.git] / stage3 / pkg / git
index 99f530f..f17feb5 100644 (file)
@@ -1,12 +1,31 @@
 #!/bin/bash
 
-hvconfig_pre()
-{
-    cd ${LFS_TMP}/${PACKAGE}
-    autoreconf -i
-}
-
 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
 }