示例#1
0
文件: model.py 项目: moreati/git-cola
 def do(self):
     if self.keep_index:
         args = ['save', '--keep-index', self.stash_name]
     else:
         args = ['save', self.stash_name]
     status, output = git.stash(with_stderr=True, with_status=True, *args)
     cola.notifier().broadcast(signals.log_cmd, status, output)
示例#2
0
文件: model.py 项目: queer1/git-cola
 def do(self):
     if self.index:
         args = ['apply', '--index', self.selection]
     else:
         args = ['apply', self.selection]
     status, output = git.stash(with_stderr=True, with_status=True, *args)
     Interaction.log_status(status, output, '')
示例#3
0
文件: model.py 项目: moreati/git-cola
 def do(self):
     if self.index:
         args = ['apply', '--index', self.selection]
     else:
         args = ['apply', self.selection]
     status, output = git.stash(with_stderr=True, with_status=True, *args)
     cola.notifier().broadcast(signals.log_cmd, status, output)
示例#4
0
文件: model.py 项目: queer1/git-cola
 def do(self):
     if self.keep_index:
         args = ['save', '--keep-index', self.stash_name]
     else:
         args = ['save', self.stash_name]
     status, output = git.stash(with_stderr=True, with_status=True, *args)
     Interaction.log_status(status, output, '')
示例#5
0
 def do(self):
     if self.keep_index:
         args = ['save', '--keep-index', self.stash_name]
     else:
         args = ['save', self.stash_name]
     status, out, err = git.stash(*args)
     Interaction.log_status(status, out, err)
示例#6
0
 def do(self):
     if self.index:
         args = ['apply', '--index', self.selection]
     else:
         args = ['apply', self.selection]
     status, out, err = git.stash(*args)
     Interaction.log_status(status, out, err)
示例#7
0
文件: model.py 项目: rakoo/git-cola
 def do(self):
     if self.index:
         args = ["apply", "--index", self.selection]
     else:
         args = ["apply", self.selection]
     status, output = git.stash(with_stderr=True, with_status=True, *args)
     cola.notifier().broadcast(signals.log_cmd, status, output)
示例#8
0
 def do(self):
     if self.keep_index:
         args = ['save', '--keep-index', self.stash_name]
     else:
         args = ['save', self.stash_name]
     status, out, err = git.stash(*args)
     Interaction.log_status(status, out, err)
示例#9
0
 def do(self):
     if self.keep_index:
         args = ['save', '--keep-index', self.stash_name]
     else:
         args = ['save', self.stash_name]
     status, output = git.stash(with_stderr=True, with_status=True, *args)
     Interaction.log_status(status, output, '')
示例#10
0
 def do(self):
     if self.index:
         args = ['apply', '--index', self.selection]
     else:
         args = ['apply', self.selection]
     status, out, err = git.stash(*args)
     Interaction.log_status(status, out, err)
示例#11
0
 def do(self):
     if self.index:
         args = ['apply', '--index', self.selection]
     else:
         args = ['apply', self.selection]
     status, output = git.stash(with_stderr=True, with_status=True, *args)
     Interaction.log_status(status, output, '')
示例#12
0
文件: model.py 项目: rakoo/git-cola
 def do(self):
     if self.keep_index:
         args = ["save", "--keep-index", self.stash_name]
     else:
         args = ["save", self.stash_name]
     status, output = git.stash(with_stderr=True, with_status=True, *args)
     cola.notifier().broadcast(signals.log_cmd, status, output)
示例#13
0
 def stash_list(self):
     return git.stash('list')[STDOUT].splitlines()
示例#14
0
 def do(self):
     status, out, err = git.stash('drop', self.stash_sha1)
     Interaction.log_status(status, out, err)
示例#15
0
 def stash_diff(self, rev):
     diffstat = git.stash('show', rev)[STDOUT]
     diff = git.stash('show', '-p', rev)[STDOUT]
     return diffstat + '\n\n' + diff
示例#16
0
文件: model.py 项目: queer1/git-cola
 def stash_diff(self, rev):
     diffstat = git.stash('show', rev)
     diff = git.stash('show', '-p', rev)
     return diffstat + '\n\n' + diff
示例#17
0
 def do(self):
     status, output = git.stash('drop', self.stash_sha1,
                                with_stderr=True, with_status=True)
     Interaction.log_status(status, output, '')
示例#18
0
 def stash_list(self):
     return git.stash('list').splitlines()
示例#19
0
文件: model.py 项目: rakoo/git-cola
 def do(self):
     status, output = git.stash("drop", self.stash_sha1, with_stderr=True, with_status=True)
     cola.notifier().broadcast(signals.log_cmd, status, output)
示例#20
0
 def do(self):
     status, out, err = git.stash('drop', self.stash_sha1)
     Interaction.log_status(status, out, err)
示例#21
0
文件: model.py 项目: moreati/git-cola
 def do(self):
     status, output = git.stash('drop', self.stash_sha1,
                                with_stderr=True, with_status=True)
     cola.notifier().broadcast(signals.log_cmd, status, output)
示例#22
0
文件: model.py 项目: queer1/git-cola
 def stash_list(self):
     return git.stash('list').splitlines()
示例#23
0
文件: model.py 项目: queer1/git-cola
 def do(self):
     status, output = git.stash('drop',
                                self.stash_sha1,
                                with_stderr=True,
                                with_status=True)
     Interaction.log_status(status, output, '')
示例#24
0
文件: model.py 项目: rakoo/git-cola
 def stash_list(self):
     return git.stash("list").splitlines()
示例#25
0
文件: model.py 项目: rakoo/git-cola
 def stash_diff(self, rev):
     diffstat = git.stash("show", rev)
     diff = git.stash("show", "-p", rev)
     return diffstat + "\n\n" + diff
示例#26
0
 def stash_list(self):
     return git.stash('list')[STDOUT].splitlines()
示例#27
0
 def stash_diff(self, rev):
     diffstat = git.stash('show', rev)[STDOUT]
     diff = git.stash('show', '-p', '--no-ext-diff', rev)[STDOUT]
     return diffstat + '\n\n' + diff