diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-03-10 15:25:18 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-10 15:25:18 -0800 |
commit | 2e0e8b68e3ba8ea87f001c45c78f9b7ce549c61f (patch) | |
tree | 12363fe88e40f042c24583e829a696505fcb9b7c /builtin/annotate.c | |
parent | e007240cb940811a6e075d35f5c3a93a44c54f5a (diff) | |
parent | 81b50f3ce40bfdd66e5d967bf82be001039a9a98 (diff) | |
download | git-2e0e8b68e3ba8ea87f001c45c78f9b7ce549c61f.tar.gz |
Merge branch 'lt/deepen-builtin-source'
* lt/deepen-builtin-source:
Move 'builtin-*' into a 'builtin/' subdirectory
Conflicts:
Makefile
Diffstat (limited to 'builtin/annotate.c')
-rw-r--r-- | builtin/annotate.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/builtin/annotate.c b/builtin/annotate.c new file mode 100644 index 0000000000..fc43eed36b --- /dev/null +++ b/builtin/annotate.c @@ -0,0 +1,24 @@ +/* + * "git annotate" builtin alias + * + * Copyright (C) 2006 Ryan Anderson + */ +#include "git-compat-util.h" +#include "builtin.h" + +int cmd_annotate(int argc, const char **argv, const char *prefix) +{ + const char **nargv; + int i; + nargv = xmalloc(sizeof(char *) * (argc + 2)); + + nargv[0] = "annotate"; + nargv[1] = "-c"; + + for (i = 1; i < argc; i++) { + nargv[i+1] = argv[i]; + } + nargv[argc + 1] = NULL; + + return cmd_blame(argc + 1, nargv, prefix); +} |