-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4dbbc7d
commit 81fa7a6
Showing
4 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
*.pyc | ||
*sln | ||
breakpoints* | ||
update.bat | ||
doit.sh | ||
|
||
*.sln | ||
breakpoints.xml | ||
icons/Thumbs.db |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#! /bin/sh | ||
# move to .git/hooks/pre-commit | ||
|
||
git diff --cached --no-renames --diff-filter=AM --name-only -- '*.py' | | ||
(status=0; while read path; do | ||
if git show ":$path" | head -1 | grep $'^\xEF\xBB\xBF' >/dev/null; then | ||
echo "Error: file '$path' starts with Unicode BOM. Run 'remove_bom.sh $path" then try commit again." | ||
status=1 | ||
fi | ||
done | ||
exit $status) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sed -b -i -e "1s/^\xEF\xBB\xBF//" $1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
robocopy "%userprofile%/repos/web inspector" "%appdata%/sublime text 3/packages/web inspector" /s /xd .git* /xf .git* /xf *st3* /mir | ||
attrib +r "%appdata%/sublime text 3/packages/web inspector/*py" |