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
This commit is contained in:
commit
aedb94b3f0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user