summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKipras Melnikovas <kipras@kipras.org>2020-04-25 15:16:28 +0000
committerKipras Melnikovas <kipras@kipras.org>2020-04-25 15:19:34 +0000
commit40c3a5bdd0a91e56c427a742996dba4234fec6cb (patch)
tree151e87035afcd07eca61a040847c28e6e778be7f
parentd1262d2fbc7bee6290a8e3a23734d2803c70c1c2 (diff)
Make git ignore deleted LICENSE & README.md files
Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
-rw-r--r--larbs.sh3
1 files changed, 3 insertions, 0 deletions
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