# Path: sgit/util.py
# def get_executable(key, default=None):
#     return get_setting('git_executables', {}).get(key, default)
# 
# 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)


import os
import subprocess
import threading
import sublime
from sublime_plugin import WindowCommand
from .util import get_executable
from .cmd import GitCmd
# coding: utf-8



EXECUTABLE_ERROR = ("Executable '{bin}' was not found in PATH. Current PATH:\n\n"
                    "{path}")


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

    def run(self):
        cwd = self.get_repo(silent=False)
        if not cwd:
            return


# Path: sgit/util.py
# def get_executable(key, default=None):
#     return get_setting('git_executables', {}).get(key, default)
# 
# 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/gitk.py
import os
import subprocess
import threading
import sublime
from sublime_plugin import WindowCommand
from .util import get_executable
from .cmd import GitCmd

# coding: utf-8



EXECUTABLE_ERROR = ("Executable '{bin}' was not found in PATH. Current PATH:\n\n"
                    "{path}")


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

    def run(self):
        cwd = self.get_repo(silent=False)
        if not cwd:
            return


        cmd = get_executable('gitk', ['gitk'])