示例#1
0
文件: funcs.py 项目: OmarElawady/tgg
def status():
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.view_status()
示例#2
0
文件: funcs.py 项目: OmarElawady/tgg
def untrack(name):
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.untrack_file(name)
示例#3
0
文件: funcs.py 项目: OmarElawady/tgg
def revert(c):
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.load_commit_by_id(c)
示例#4
0
文件: funcs.py 项目: OmarElawady/tgg
def merge(b):
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.merge_with_branch_by_name(b)
示例#5
0
文件: funcs.py 项目: OmarElawady/tgg
def log():
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.log()
示例#6
0
文件: funcs.py 项目: OmarElawady/tgg
def checkout():
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.switch_to_branch_by_name(b)
示例#7
0
文件: funcs.py 项目: OmarElawady/tgg
def branch(b):
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.create_new_branch(b)
示例#8
0
文件: funcs.py 项目: OmarElawady/tgg
def init():
    engine.VCS().initialize()
示例#9
0
文件: funcs.py 项目: OmarElawady/tgg
def commit(m):
    e = engine.VCS()
    if not e.is_initialized():
        print("No tgg repo found")
        return
    e.add_new_commit(m)