From 40c3a5bdd0a91e56c427a742996dba4234fec6cb Mon Sep 17 00:00:00 2001 From: Kipras Melnikovas Date: Sat, 25 Apr 2020 15:16:28 +0000 Subject: [PATCH] Make git ignore deleted LICENSE & README.md files Signed-off-by: Kipras Melnikovas --- larbs.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/larbs.sh b/larbs.sh index 0383a10..cb2622d 100644 --- a/larbs.sh +++ b/larbs.sh @@ -222,6 +222,9 @@ yes | sudo -u "$name" $aurhelper -S libxft-bgra >/dev/null 2>&1 # Install the dotfiles in the user's home directory putgitrepo "$dotfilesrepo" "/home/$name" "$repobranch" rm -f "/home/$name/README.md" "/home/$name/LICENSE" +# make git ignore deleted LICENSE & README.md files +git update-index --assume-unchanged "/home/$name/README.md" +git update-index --assume-unchanged "/home/$name/LICENSE" # Most important command! Get rid of the beep! systembeepoff