Last active
October 23, 2019 20:12
Revisions
-
mkatychev revised this gist
Oct 23, 2019 . 1 changed file with 6 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,13 +3,14 @@ # https://github.com/ggreer/the_silver_searcher/wiki/Advanced-Usage#ignore # git diff master -- $(diffignore.sh) DIFFI='' test -f ".diffignore" || cp ./scripts/.diffignore.base ./.diffignore || exit 1 while read -r ignore;do if [ -n "$ignore" ] && [[ "${ignore}" != \!* ]] && [[ "$ignore" != \#* ]] ; then DIFFI+=" :!${ignore}" fi done < .diffignore echo "$DIFFI" -
mkatychev created this gist
Oct 19, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ #!/usr/bin/env bash # https://github.com/ggreer/the_silver_searcher/wiki/Advanced-Usage#ignore # git diff master -- $(diffignore.sh) TO_DOT_IGNORE='' test -f ".ignore" || exit 1 while read -r ignore;do if [ -n "$ignore" ] && [[ "${ignore}" != \!* ]] && [[ "$ignore" != \#* ]] ; then TO_DOT_IGNORE+=" :!${ignore}" fi done < .ignore echo "$TO_DOT_IGNORE"