tom/git.py
def put_file(self, path, data, add=True):
        """Overwrites file with data, optionally running `git add {path}` afterwards"""
        with open(self.dirname + '/' + path, 'w') as f:
            f.write(data)
        if add:
            self.run_command('add', path)
Overwrites file with data, optionally running `git add {path}` afterwards
Overwrites file with data, optionally running `git add {path}` afterwards
Overwrites file with data optionally running ` git add { path } ` afterwards
def put_file(self, path, data, add=True):
        with open(self.dirname + '/' + path, 'w') as f:
            f.write(data)
        if add:
            self.run_command('add', path)
def put_file ( self , path , data , add = True ) : with open ( self . dirname + '/' + path , 'w' ) as f : f . write ( data ) if add : self . run_command ( 'add' , path )
Overwrites file with data, optionally running `git add {path}` afterwards
Overwrites file with data optionally running ` git add { path } ` afterwards
"""Overwrites file with data, optionally running `git add {path}` afterwards"""
self
path
data
add