diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-04-26 15:17:48 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-26 15:17:48 -0700 |
commit | aedb94b3f05bf4fb6c95dbfdccf11ebd101e947a (patch) | |
tree | 10ace3e71c307e78116509296d8458fab229fdd6 /builtin/add.c | |
parent | e27004e341c65fede65348f07e00f63bf11efd96 (diff) | |
parent | 0df7b8e55c3b193f2b2f60f7cac1ebb2ce04cd9e (diff) | |
download | git-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.c | 2 |
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; |