aboutsummaryrefslogtreecommitdiff
path: root/builtin/add.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-04-26 15:17:48 -0700
committerJunio C Hamano <gitster@pobox.com>2013-04-26 15:17:48 -0700
commitaedb94b3f05bf4fb6c95dbfdccf11ebd101e947a (patch)
tree10ace3e71c307e78116509296d8458fab229fdd6 /builtin/add.c
parente27004e341c65fede65348f07e00f63bf11efd96 (diff)
parent0df7b8e55c3b193f2b2f60f7cac1ebb2ce04cd9e (diff)
downloadgit-aedb94b3f05bf4fb6c95dbfdccf11ebd101e947a.tar.gz
git-aedb94b3f05bf4fb6c95dbfdccf11ebd101e947a.tar.xz
Merge branch 'jc/warn-pathless-add-finishing-touches'
* jc/warn-pathless-add-finishing-touches: git add: avoid "-u/-A without pathspec" warning on stat-dirty paths
Diffstat (limited to 'builtin/add.c')
-rw-r--r--builtin/add.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/add.c b/builtin/add.c
index d4b40f2b7..63df5f693 100644
--- a/builtin/add.c
+++ b/builtin/add.c
@@ -542,6 +542,8 @@ int cmd_add(int argc, const char **argv, const char *prefix)
refresh(verbose, pathspec);
goto finish;
}
+ if (implicit_dot && prefix)
+ refresh_cache(REFRESH_QUIET);
if (pathspec) {
int i;