def status(): e = engine.VCS() if not e.is_initialized(): print("No tgg repo found") return e.view_status()
def untrack(name): e = engine.VCS() if not e.is_initialized(): print("No tgg repo found") return e.untrack_file(name)
def revert(c): e = engine.VCS() if not e.is_initialized(): print("No tgg repo found") return e.load_commit_by_id(c)
def merge(b): e = engine.VCS() if not e.is_initialized(): print("No tgg repo found") return e.merge_with_branch_by_name(b)
def log(): e = engine.VCS() if not e.is_initialized(): print("No tgg repo found") return e.log()
def checkout(): e = engine.VCS() if not e.is_initialized(): print("No tgg repo found") return e.switch_to_branch_by_name(b)
def branch(b): e = engine.VCS() if not e.is_initialized(): print("No tgg repo found") return e.create_new_branch(b)
def init(): engine.VCS().initialize()
def commit(m): e = engine.VCS() if not e.is_initialized(): print("No tgg repo found") return e.add_new_commit(m)