Skip to content

Commit aedb94b

Browse files
committed
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
2 parents e27004e + 0df7b8e commit aedb94b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

builtin/add.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,8 @@ int cmd_add(int argc, const char **argv, const char *prefix)
542542
refresh(verbose, pathspec);
543543
goto finish;
544544
}
545+
if (implicit_dot && prefix)
546+
refresh_cache(REFRESH_QUIET);
545547

546548
if (pathspec) {
547549
int i;

0 commit comments

Comments
 (0)