Revision 7a5026529529e811b41de02ca12aa6c8ff3d11c5 authored by Junio C Hamano on 23 December 2020, 21:59:46 UTC, committed by Junio C Hamano on 23 December 2020, 21:59:46 UTC
Hotfix for a topic of this cycle.

* ma/maintenance-crontab-fix:
  t7900-maintenance: test for magic markers
  gc: fix handling of crontab magic markers
  git-maintenance.txt: add missing word
2 parent s 04cd999 + a52df25
Raw File
annotate.c
/*
 * "git annotate" builtin alias
 *
 * Copyright (C) 2006 Ryan Anderson
 */
#include "git-compat-util.h"
#include "builtin.h"
#include "strvec.h"

int cmd_annotate(int argc, const char **argv, const char *prefix)
{
	struct strvec args = STRVEC_INIT;
	int i;

	strvec_pushl(&args, "annotate", "-c", NULL);

	for (i = 1; i < argc; i++) {
		strvec_push(&args, argv[i]);
	}

	return cmd_blame(args.nr, args.v, prefix);
}
back to top