From 56dded948eb2100fb9d6bafde9689916af057e32 Mon Sep 17 00:00:00 2001 From: Victor Häggqvist Date: Thu, 8 May 2014 02:41:38 +0200 Subject: fixes --- .gitignore | 1 + README.md | 2 +- giti.py | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) mode change 100644 => 100755 giti.py diff --git a/.gitignore b/.gitignore index 51cbe85..4e47a3b 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,4 @@ coverage.xml # Sphinx documentation docs/_build/ +test/ diff --git a/README.md b/README.md index 9429bba..bf1ae05 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ giti ==== -A python command line tool for getting .gitignore files +A python command line tool for getting .gitignore files. \ No newline at end of file diff --git a/giti.py b/giti.py old mode 100644 new mode 100755 index b1c1422..c01c652 --- a/giti.py +++ b/giti.py @@ -1,3 +1,4 @@ +#!/usr/bin/python # coding=utf-8 import os import sys @@ -23,7 +24,6 @@ def store(file): """ Store content in file """ - print "storing" if os.path.isfile(".gitignore") == True: try: merge = input("Do you want to merge with existing .gitignore [Y/n]:") @@ -40,7 +40,7 @@ def store(file): f.write(gitignore) print ".gitignore baked :)" else: - print "Did nothing your .gitignore lives like before" + print "Did nothing, your .gitignore lives like before" @@ -63,6 +63,6 @@ def main(): if len(sys.argv) == 2: giti(sys.argv[1]) else: - print "Usage giti [language or stuff]" + print "Usage: giti [language or stuff]" main() -- cgit v1.2.3