diff options
author | Michael Trier <mtrier@gmail.com> | 2008-05-07 16:49:48 -0400 |
---|---|---|
committer | Michael Trier <mtrier@gmail.com> | 2008-05-07 16:49:48 -0400 |
commit | 33ebe7acec14b25c5f84f35a664803fcab2f7781 (patch) | |
tree | 960b40fe368a9882221bcdd8635b9080dec01ec6 /lib/git_python/utils.py | |
download | gitpython-33ebe7acec14b25c5f84f35a664803fcab2f7781.tar.gz |
initial project
Diffstat (limited to 'lib/git_python/utils.py')
-rw-r--r-- | lib/git_python/utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/git_python/utils.py b/lib/git_python/utils.py new file mode 100644 index 00000000..2bd6f2cd --- /dev/null +++ b/lib/git_python/utils.py @@ -0,0 +1,8 @@ +def shell_escape(string): + return str(string).replace("'", "\\\\'") + +def dashify(string): + return string.replace('_', '-') + +def touch(filename): + open(filename, "a").close() |