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);
|
refresh(verbose, pathspec);
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
|
if (implicit_dot && prefix)
|
||||||
|
refresh_cache(REFRESH_QUIET);
|
||||||
|
|
||||||
if (pathspec) {
|
if (pathspec) {
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user