summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-04-26 15:17:48 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-04-26 15:17:48 -0700
commitaedb94b3f05bf4fb6c95dbfdccf11ebd101e947a (patch)
tree10ace3e71c307e78116509296d8458fab229fdd6 /builtin
parentSync with 1.8.2.2 (diff)
parentgit add: avoid "-u/-A without pathspec" warning on stat-dirty paths (diff)
downloadtgif-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')
-rw-r--r--builtin/add.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/add.c b/builtin/add.c
index d4b40f2b7a..63df5f6938 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;