diff options
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/add.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/builtin/add.c b/builtin/add.c index c13d548585..bfc6ff3b0a 100644 --- a/builtin/add.c +++ b/builtin/add.c @@ -33,8 +33,13 @@ static const char *short_option_with_implicit_dot; static void warn_pathless_add(void) { + static int shown; assert(option_with_implicit_dot && short_option_with_implicit_dot); + if (shown) + return; + shown = 1; + /* * To be consistent with "git add -p" and most Git * commands, we should default to being tree-wide, but |