builtin / annotate.con commit gc --auto: exclude base pack if not enough mem to "repack -ad" (9806f5a)
   1/*
   2 * "git annotate" builtin alias
   3 *
   4 * Copyright (C) 2006 Ryan Anderson
   5 */
   6#include "git-compat-util.h"
   7#include "builtin.h"
   8#include "argv-array.h"
   9
  10int cmd_annotate(int argc, const char **argv, const char *prefix)
  11{
  12        struct argv_array args = ARGV_ARRAY_INIT;
  13        int i;
  14
  15        argv_array_pushl(&args, "annotate", "-c", NULL);
  16
  17        for (i = 1; i < argc; i++) {
  18                argv_array_push(&args, argv[i]);
  19        }
  20
  21        return cmd_blame(args.argc, args.argv, prefix);
  22}