code: def commits(self, user, options):
          
          # Prepare the command
          command = "git log --all --author={0}".format(user.login).split()
          command.append("--format=format:%h - %s")
          command.append("--since='{0} 00:00:00'".format(options.since))
          command.append("--until='{0} 00:00:00'".format(options.until))
          if options.verbose:
              command.append("--name-only")
          log.info(u"Checking commits in {0}".format(self.path))
          log.details(pretty(command))
  
          # Get the commit messages
          try:
              process = subprocess.Popen(
                  command, cwd=self.path,
                  stdout=subprocess.PIPE, stderr=subprocess.PIPE)
          except OSError as error:
              log.debug(error)
              raise did.base.ReportError(
                  "Unable to access git repo '{0}'".format(self.path))
          output, errors = process.communicate()
          log.debug("git log output:")
          log.debug(output)
          if process.returncode == 0:
              if not output:
                  return []
              else:
                  if not options.verbose:
                      return unicode(output, "utf8").split("\n")
                  commits = []
                  for commit in unicode(output, "utf8").split("\n\n"):
                      summary = commit.split("\n")[0]
                      directory = re.sub("/[^/]+$", "", commit.split("\n")[1])
                      commits.append("{0}\n{1}* {2}".format(
                          summary, 8 * " ", directory))
                  return commits
          else:
              log.debug(errors.strip())
              log.warn("Unable to check commits in '{0}'".format(self.path))
              return []
docs: List commits for given user.