builtin-annotate.con commit merge-recursive: adjust to loosened "working file clobbered" check (65ac6e9)
   1/*
   2 * "git annotate" builtin alias
   3 *
   4 * Copyright (C) 2006 Ryan Anderson
   5 */
   6#include "git-compat-util.h"
   7#include "exec_cmd.h"
   8
   9int cmd_annotate(int argc, const char **argv, const char *prefix)
  10{
  11        const char **nargv;
  12        int i;
  13        nargv = xmalloc(sizeof(char *) * (argc + 2));
  14
  15        nargv[0] = "blame";
  16        nargv[1] = "-c";
  17
  18        for (i = 1; i < argc; i++) {
  19                nargv[i+1] = argv[i];
  20        }
  21        nargv[argc + 1] = NULL;
  22
  23        return execv_git_cmd(nargv);
  24}
  25