Skip to content

Commit

Permalink
[vgit-] fix git-log
Browse files Browse the repository at this point in the history
  • Loading branch information
saulpw committed Jun 8, 2023
1 parent 321bdbf commit 17179f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions visidata/apps/vgit/branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ def iterload(self):
\s*(?P<extra>.*?)
\])?
\s*(?P<msg>.*)''', line, re.VERBOSE)
vd.status(line)
vd.status(m)
if not m:
continue
branch_details = AttrDict(m.groupdict())
Expand Down
2 changes: 1 addition & 1 deletion visidata/apps/vgit/gitsheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def git_lines(self, subcmd, *args, **kwargs):
err = io.StringIO()
args = list(subcmd.split()) + list(args)
try:
vd.status('git ' + ' '.join(str(x) for x in args))
vd.debug('git ' + ' '.join(str(x) for x in args))
for line in self.git('--no-pager',
*args,
_decode_errors='replace',
Expand Down
4 changes: 2 additions & 2 deletions visidata/apps/vgit/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


@VisiData.api
def git_log(vd, p, args):
def git_log(vd, p, *args):
return GitLogSheet('git-log', source=p, gitargs=args)

# rowdef: (commit_hash, refnames, author, author_date, body, notes)
Expand Down Expand Up @@ -77,7 +77,7 @@ def commit(self, path, adds, mods, dels):
#GitLogSheet.addCommand('x', 'git-pick', 'git("cherry-pick", cursorRow.commitid)', 'cherry-pick this commit onto current branch'),
#GitLogSheet.addCommand('r', 'git-reset-here', 'git("update-ref", "refs/heads/"+source, cursorRow[0])', 'reset this branch to this commit'),

GitSheet.addCommand('', 'git-log', 'vd.push(git_log(self.gitRootPath, branch))', 'push log of current branch')
GitSheet.addCommand('', 'git-log', 'vd.push(git_log(gitRootPath, branch))', 'push log of current branch')

vd.addMenuItems('''
Git > Open > log > git-log
Expand Down

0 comments on commit 17179f0

Please sign in to comment.