Skip to content

Commit

Permalink
Add note about skeevy code.
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
  • Loading branch information
ezyang committed Jan 3, 2013
1 parent 9d928df commit d052736
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-ftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def split_pattern(path):
path[i] = p + '\\Z(?ms)'
return path


# ezyang: This code is pretty skeevy; there is probably a better,
# more obviously correct way of spelling it. Refactor me...
def is_ignored(path, regex):
regex = split_pattern(os.path.normcase(regex))
path = os.path.normcase(path).split('/')
Expand Down

0 comments on commit d052736

Please sign in to comment.