summaryrefslogtreecommitdiff
path: root/lib/git_python/utils.py
blob: 2bd6f2cd8e5e633722a9e9923606c2d9e46e2009 (plain)
1
2
3
4
5
6
7
8
def shell_escape(string):
    return str(string).replace("'", "\\\\'")

def dashify(string):
    return string.replace('_', '-')

def touch(filename):
    open(filename, "a").close()