Skip to content

Commit

Permalink
Fix inconsistent indentation in gitsheet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cool-RR authored and saulpw committed Oct 21, 2023
1 parent 98d9840 commit bbcabb1
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions visidata/apps/vgit/gitsheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,25 +76,25 @@ def git_iter(self, subcmd, *args, sep='\0', **kwargs):
bufsize = 512
chunks = []
try:
vd.debug('git ' + ' '.join(str(x) for x in args))
for data in self.git('--no-pager',
*args,
_decode_errors='replace',
_out_bufsize=bufsize,
_iter=True,
_bg_exc=False,
_err=err,
**kwargs):
while True:
i = data.find(sep)
if i < 0:
break
chunks.append(data[:i])
data = data[i+1:]
yield ''.join(chunks)
chunks.clear()

chunks.append(data)
vd.debug('git ' + ' '.join(str(x) for x in args))
for data in self.git('--no-pager',
*args,
_decode_errors='replace',
_out_bufsize=bufsize,
_iter=True,
_bg_exc=False,
_err=err,
**kwargs):
while True:
i = data.find(sep)
if i < 0:
break
chunks.append(data[:i])
data = data[i+1:]
yield ''.join(chunks)
chunks.clear()

chunks.append(data)
except sh.ErrorReturnCode as e:
vd.warning('git '+' '.join(str(x) for x in args), 'error=%s' % e.exit_code)

Expand Down

0 comments on commit bbcabb1

Please sign in to comment.