# Path: sgit/util.py
# def noop(*args, **kwargs):
#     pass
# 
# def find_view_by_settings(window, **kwargs):
#     for view in window.views():
#         s = view.settings()
#         matches = [s.get(k) == v for k, v in list(kwargs.items())]
#         if all(matches):
#             return view
# 
# Path: sgit/cmd.py
# class GitCmd(GitRepoHelper, Cmd):
#     executable = 'git'
#     bin = ['git']
#     opts = [
#         '--no-pager',
#         '-c', 'color.diff=false',
#         '-c', 'color.status=false',
#         '-c', 'color.branch=false',
#         '-c', 'status.displayCommentPrefix=true',
#         '-c', 'core.commentchar=#',
#     ]
# 
#     def git(self, cmd, *args, **kwargs):
#         return self.cmd(cmd, *args, **kwargs)
# 
#     def git_string(self, cmd, *args, **kwargs):
#         return self._string(cmd, *args, **kwargs)
# 
#     def git_lines(self, cmd, *args, **kwargs):
#         return self._lines(cmd, *args, **kwargs)
# 
#     def git_exit_code(self, cmd, *args, **kwargs):
#         return self._exit_code(cmd, *args, **kwargs)
# 
#     def git_async(self, cmd, *args, **kwargs):
#         return self.cmd_async(cmd, *args, **kwargs)
# 
# Path: sgit/helpers.py
# class GitShowHelper(object):
# 
#     def get_show(self, repo, obj):
#         return self.git_string(['show', '--format=medium', '--no-color', obj], cwd=repo)


from functools import partial
from sublime_plugin import WindowCommand, TextCommand
from .util import noop, find_view_by_settings
from .cmd import GitCmd
from .helpers import GitShowHelper
import sublime
# coding: utf-8



GIT_SHOW_TITLE_PREFIX = '*git-show*: '
GIT_SHOW_SYNTAX = 'Packages/SublimeGit/syntax/SublimeGit Show.tmLanguage'


class GitShowCommand(WindowCommand, GitCmd):
    """
    Documentation coming soon.
    """

    def run(self, repo=None, obj=None):
        repo = repo or self.get_repo()
        if not repo:
            return

        if not obj:

# Path: sgit/util.py
# def noop(*args, **kwargs):
#     pass
# 
# def find_view_by_settings(window, **kwargs):
#     for view in window.views():
#         s = view.settings()
#         matches = [s.get(k) == v for k, v in list(kwargs.items())]
#         if all(matches):
#             return view
# 
# Path: sgit/cmd.py
# class GitCmd(GitRepoHelper, Cmd):
#     executable = 'git'
#     bin = ['git']
#     opts = [
#         '--no-pager',
#         '-c', 'color.diff=false',
#         '-c', 'color.status=false',
#         '-c', 'color.branch=false',
#         '-c', 'status.displayCommentPrefix=true',
#         '-c', 'core.commentchar=#',
#     ]
# 
#     def git(self, cmd, *args, **kwargs):
#         return self.cmd(cmd, *args, **kwargs)
# 
#     def git_string(self, cmd, *args, **kwargs):
#         return self._string(cmd, *args, **kwargs)
# 
#     def git_lines(self, cmd, *args, **kwargs):
#         return self._lines(cmd, *args, **kwargs)
# 
#     def git_exit_code(self, cmd, *args, **kwargs):
#         return self._exit_code(cmd, *args, **kwargs)
# 
#     def git_async(self, cmd, *args, **kwargs):
#         return self.cmd_async(cmd, *args, **kwargs)
# 
# Path: sgit/helpers.py
# class GitShowHelper(object):
# 
#     def get_show(self, repo, obj):
#         return self.git_string(['show', '--format=medium', '--no-color', obj], cwd=repo)


# Path: sgit/show.py
from functools import partial
from sublime_plugin import WindowCommand, TextCommand
from .util import noop, find_view_by_settings
from .cmd import GitCmd
from .helpers import GitShowHelper
import sublime

# coding: utf-8



GIT_SHOW_TITLE_PREFIX = '*git-show*: '
GIT_SHOW_SYNTAX = 'Packages/SublimeGit/syntax/SublimeGit Show.tmLanguage'


class GitShowCommand(WindowCommand, GitCmd):
    """
    Documentation coming soon.
    """

    def run(self, repo=None, obj=None):
        repo = repo or self.get_repo()
        if not repo:
            return

        if not obj:

            self.window.show_input_panel('Object:', '', partial(self.show, repo), noop, noop)