We allow otherwise ignored paths to be added to the index by spelling its path out on the command line, but we would warn the user about them when we do so. Signed-off-by: Junio C Hamano <junkio@xxxxxxx> --- * This is on top of what I sent out last night. builtin-add.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/builtin-add.c b/builtin-add.c index 822075a..c54c694 100644 --- a/builtin-add.c +++ b/builtin-add.c @@ -37,6 +37,9 @@ static void prune_directory(struct dir_struct *dir, const char **pathspec, int p free(entry); continue; } + if (entry->ignored_entry) + fprintf(stderr, "warning: '%s' is an ignored path.\n", + entry->name); *dst++ = entry; } dir->nr = dst - dir->entries; -- 1.4.4.3.g71b5 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html