diff --git a/builtin-add.c b/builtin-add.c
index e7a1b4d9ab43cbb7de48b099c3afb721903f516b..87e16aa2200f90e2f12673e856040ed29ee7d119 100644 (file)
--- a/builtin-add.c
+++ b/builtin-add.c
#include "cache-tree.h"
static const char builtin_add_usage[] =
#include "cache-tree.h"
static const char builtin_add_usage[] =
-"git-add [-n] [-v] [-f] [--interactive] [--] <filepattern>...";
+"git-add [-n] [-v] [-f] [--interactive | -i] [--] <filepattern>...";
static void prune_directory(struct dir_struct *dir, const char **pathspec, int prefix)
{
static void prune_directory(struct dir_struct *dir, const char **pathspec, int prefix)
{
int add_interactive = 0;
for (i = 1; i < argc; i++) {
int add_interactive = 0;
for (i = 1; i < argc; i++) {
- if (!strcmp("--interactive", argv[i]))
+ if (!strcmp("--interactive", argv[i]) ||
+ !strcmp("-i", argv[i]))
add_interactive++;
}
if (add_interactive) {
add_interactive++;
}
if (add_interactive) {