Adding upstream version 1:2.47.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
parent
fd5a0bafa2
commit
54102a2c29
4535 changed files with 1510258 additions and 0 deletions
27
builtin/annotate.c
Normal file
27
builtin/annotate.c
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* "git annotate" builtin alias
|
||||
*
|
||||
* Copyright (C) 2006 Ryan Anderson
|
||||
*/
|
||||
|
||||
#define USE_THE_REPOSITORY_VARIABLE
|
||||
#include "git-compat-util.h"
|
||||
#include "builtin.h"
|
||||
#include "strvec.h"
|
||||
|
||||
int cmd_annotate(int argc,
|
||||
const char **argv,
|
||||
const char *prefix,
|
||||
struct repository *repo UNUSED)
|
||||
{
|
||||
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, the_repository);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue