# Path: sgit/util.py
# def noop(*args, **kwargs):
#     pass
# 
# def abbreviate_dir(dirname):
#     user_dir = get_user_dir()
#     try:
#         if dirname.startswith(user_dir):
#             dirname = u'~%s' % dirname[len(user_dir):]
#     except:
#         pass
#     return dirname
# 
# 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 sublime
from sublime_plugin import WindowCommand
from .util import noop, abbreviate_dir
from .cmd import GitCmd
# coding: utf-8




GIT_INIT_NO_DIR_ERROR = "No directory provided. Aborting git init."
GIT_INIT_DIR_NOT_EXISTS_MSG = "The directory %s does not exist. Create directory?"
GIT_INIT_NOT_ISDIR_ERROR = "%s is not a directory. Aborting git init."
GIT_INIT_DIR_EXISTS_ERROR = "%s already exists. Aborting git init."
GIT_INIT_DIR_LABEL = "Directory:"



# Path: sgit/util.py
# def noop(*args, **kwargs):
#     pass
# 
# def abbreviate_dir(dirname):
#     user_dir = get_user_dir()
#     try:
#         if dirname.startswith(user_dir):
#             dirname = u'~%s' % dirname[len(user_dir):]
#     except:
#         pass
#     return dirname
# 
# 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/repo.py
import os
import sublime
from sublime_plugin import WindowCommand
from .util import noop, abbreviate_dir
from .cmd import GitCmd

# coding: utf-8




GIT_INIT_NO_DIR_ERROR = "No directory provided. Aborting git init."
GIT_INIT_DIR_NOT_EXISTS_MSG = "The directory %s does not exist. Create directory?"
GIT_INIT_NOT_ISDIR_ERROR = "%s is not a directory. Aborting git init."
GIT_INIT_DIR_EXISTS_ERROR = "%s already exists. Aborting git init."
GIT_INIT_DIR_LABEL = "Directory:"



class GitInitCommand(WindowCommand, GitCmd):