We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 822a4d4 + 1e22a99 commit 70def2cCopy full SHA for 70def2c
builtin/add.c
@@ -32,7 +32,7 @@ struct update_callback_data {
32
int add_errors;
33
};
34
35
-static void chmod_pathspec(struct pathspec *pathspec, int force_mode)
+static void chmod_pathspec(struct pathspec *pathspec, char flip)
36
{
37
int i;
38
@@ -42,8 +42,8 @@ static void chmod_pathspec(struct pathspec *pathspec, int force_mode)
42
if (pathspec && !ce_path_match(ce, pathspec, NULL))
43
continue;
44
45
- if (chmod_cache_entry(ce, force_mode) < 0)
46
- fprintf(stderr, "cannot chmod '%s'", ce->name);
+ if (chmod_cache_entry(ce, flip) < 0)
+ fprintf(stderr, "cannot chmod %cx '%s'\n", flip, ce->name);
47
}
48
49
0 commit comments