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 | |
parent | Sync with 1.8.2.2 (diff) | |
parent | git add: avoid "-u/-A without pathspec" warning on stat-dirty paths (diff) | |
download | tgif-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.c | 2 |
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; |