@@ -34,26 +34,30 @@ def get_branch(self):
3434 def branch_to_file_and_commit_list (self ):
3535 'the execute origin branch commit record list that to files'
3636 return execute ([
37- 'git branch --list --all --sort=committerdate --format=\' %(color:reset)%(HEAD) %(color:yellow)%(refname:short)%(color:reset)|%(color:red)%(objectname:short)\' '
37+ "git branch --list --all --sort=committerdate --format=\' %(color:reset)%(HEAD) %(color:yellow)%(refname:short)%(color:reset)|\
38+ %(color:red)%(objectname:short)\' "
3839 ])
3940
4041 def branch_to_file_and_commit_list_with_more (self ):
4142 '''the execute origin branch more commit record list that to files
4243
4344 format one:
44- git branch --list --all --sort=committerdate --format=\' %(HEAD) %(color:yellow)%(refname:short)%(color:reset)|%(color:red)%(objectname:short)%(color:reset)|%(color:reset)%(contents:subject)|%(authorname)|%(color:reset)(%(color:green)%(committerdate:relative)%(color:reset))\'
45+ git branch --list --all --sort=committerdate --format=\' %(HEAD) %(color:yellow)%(refname:short)%(color:reset)|
46+ %(color:red)%(objectname:short)%(color:reset)|%(color:reset)%(contents:subject)|%(authorname)|%(color:reset)(%(color:green)%(committerdate:relative)%(color:reset))\'
4547
4648 format two:
47- git branch --list --all --sort=committerdate --format=\' %(HEAD) %(color:yellow)%(refname:short)%(color:reset)|%(color:red)%(objectname:short)%(color:reset)|%(color:reset)(%(color:green)%(committerdate:relative)%(color:reset))\'
49+ git branch --list --all --sort=committerdate --format=\' %(HEAD) %(color:yellow)%(refname:short)%(color:reset)|
50+ %(color:red)%(objectname:short)%(color:reset)|%(color:reset)(%(color:green)%(committerdate:relative)%(color:reset))\'
4851 '''
4952 return execute ([
50- 'git branch --list --all --sort=committerdate --format=\' %(HEAD) %(color:yellow)%(refname:short)%(color:reset)|%(color:red)%(objectname:short)%(color:reset)|%(color:reset)(%(color:green)%(committerdate:relative)%(color:reset))\' '
53+ "git branch --list --all --sort=committerdate --format=\' %(HEAD) %(color:yellow)%(refname:short)%(color:reset)|%(color:red)\
54+ %(objectname:short)%(color:reset)|%(color:reset)(%(color:green)%(committerdate:relative)%(color:reset))\' "
5155 ])
5256
5357 def branch_set_upstream_to (self , branch_name ):
5458 ''' the track remote and local branch associations '''
5559 if not branch_name or not len (branch_name .strip ()) > 0 :
56- logging .exception ('the current branch name is invalid.' )
60+ logging .exception ('the current branch name is invalid.' )
5761 raise KeyError ('the current branch name is invalid.' )
5862 return execute ([
5963 'git branch -u origin/{0} {0}' .format (branch_name )
@@ -66,8 +70,6 @@ def get_current_branch_name(self):
6670 def set_current_branch_name (self , branch_name ):
6771 ''' the set current branch name '''
6872 if not branch_name or not len (branch_name .strip ()) > 0 :
69- logging .exception ('the current branch name is invalid.' )
73+ logging .exception ('the current branch name is invalid.' )
7074 raise KeyError ('the current branch name is invalid.' )
7175 self ._current_branch_name = branch_name
72-
73-
0 commit comments