summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-04-25 15:26:22 -0400
committerGitHub <noreply@github.com>2020-04-25 15:26:22 -0400
commitdebd8c32c8f21456a9a5806f234889313a02362c (patch)
tree151e87035afcd07eca61a040847c28e6e778be7f
parentd1262d2fbc7bee6290a8e3a23734d2803c70c1c2 (diff)
parent40c3a5bdd0a91e56c427a742996dba4234fec6cb (diff)
Merge pull request #217 from sarpik/sarpik/make-git-ignore-deleted-readme-and-license
Make git ignore deleted LICENSE & README.md files
-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