Skip to content

Commit bbcabb1

Browse files
cool-RRsaulpw
authored andcommitted
Fix inconsistent indentation in gitsheet.py
1 parent 98d9840 commit bbcabb1

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

visidata/apps/vgit/gitsheet.py

+19-19
Original file line numberDiff line numberDiff line change
@@ -76,25 +76,25 @@ def git_iter(self, subcmd, *args, sep='\0', **kwargs):
7676
bufsize = 512
7777
chunks = []
7878
try:
79-
vd.debug('git ' + ' '.join(str(x) for x in args))
80-
for data in self.git('--no-pager',
81-
*args,
82-
_decode_errors='replace',
83-
_out_bufsize=bufsize,
84-
_iter=True,
85-
_bg_exc=False,
86-
_err=err,
87-
**kwargs):
88-
while True:
89-
i = data.find(sep)
90-
if i < 0:
91-
break
92-
chunks.append(data[:i])
93-
data = data[i+1:]
94-
yield ''.join(chunks)
95-
chunks.clear()
96-
97-
chunks.append(data)
79+
vd.debug('git ' + ' '.join(str(x) for x in args))
80+
for data in self.git('--no-pager',
81+
*args,
82+
_decode_errors='replace',
83+
_out_bufsize=bufsize,
84+
_iter=True,
85+
_bg_exc=False,
86+
_err=err,
87+
**kwargs):
88+
while True:
89+
i = data.find(sep)
90+
if i < 0:
91+
break
92+
chunks.append(data[:i])
93+
data = data[i+1:]
94+
yield ''.join(chunks)
95+
chunks.clear()
96+
97+
chunks.append(data)
9898
except sh.ErrorReturnCode as e:
9999
vd.warning('git '+' '.join(str(x) for x in args), 'error=%s' % e.exit_code)
100100

0 commit comments

Comments
 (0)