This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# The command should be run in the git repository root. | |
# It adds all symlinks to a .gitignore file that aren't in there already. | |
for f in $(git status --porcelain | grep '^??' | sed 's/^?? //'); do | |
if test -L "$f" | |
then | |
test -L "$f" && git add $f; | |
elif test -d "$f" |