|
|
@ -46,6 +46,9 @@ static int chmod_pathspec(struct pathspec *pathspec, char flip, int show_only) |
|
|
|
struct cache_entry *ce = active_cache[i]; |
|
|
|
struct cache_entry *ce = active_cache[i]; |
|
|
|
int err; |
|
|
|
int err; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ce_skip_worktree(ce)) |
|
|
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
|
|
if (pathspec && !ce_path_match(&the_index, ce, pathspec, NULL)) |
|
|
|
if (pathspec && !ce_path_match(&the_index, ce, pathspec, NULL)) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
|
@ -144,6 +147,8 @@ static int renormalize_tracked_files(const struct pathspec *pathspec, int flags) |
|
|
|
for (i = 0; i < active_nr; i++) { |
|
|
|
for (i = 0; i < active_nr; i++) { |
|
|
|
struct cache_entry *ce = active_cache[i]; |
|
|
|
struct cache_entry *ce = active_cache[i]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ce_skip_worktree(ce)) |
|
|
|
|
|
|
|
continue; |
|
|
|
if (ce_stage(ce)) |
|
|
|
if (ce_stage(ce)) |
|
|
|
continue; /* do not touch unmerged paths */ |
|
|
|
continue; /* do not touch unmerged paths */ |
|
|
|
if (!S_ISREG(ce->ce_mode) && !S_ISLNK(ce->ce_mode)) |
|
|
|
if (!S_ISREG(ce->ce_mode) && !S_ISLNK(ce->ce_mode)) |
|
|
|