Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rj/add-chmod-error-message'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 22 Aug 2017 17:29:10 +0000
(10:29 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 22 Aug 2017 17:29:10 +0000
(10:29 -0700)
Message fix.
* rj/add-chmod-error-message:
builtin/add: add detail to a 'cannot chmod' error message
builtin/add.c
patch
|
blob
|
history
raw
(from parent 1:
e45bbfc
)
diff --git
a/builtin/add.c
b/builtin/add.c
index e888fb8c5f2a1fa2be33e834724460dec8072726..5d5773d5cd2fc9e713498a72da7b57b84fd25d19 100644
(file)
--- a/
builtin/add.c
+++ b/
builtin/add.c
@@
-32,7
+32,7
@@
struct update_callback_data {
int add_errors;
};
-static void chmod_pathspec(struct pathspec *pathspec,
int force_mode
)
+static void chmod_pathspec(struct pathspec *pathspec,
char flip
)
{
int i;
@@
-42,8
+42,8
@@
static void chmod_pathspec(struct pathspec *pathspec, int force_mode)
if (pathspec && !ce_path_match(ce, pathspec, NULL))
continue;
- if (chmod_cache_entry(ce, f
orce_mode
) < 0)
- fprintf(stderr, "cannot chmod
'%s'"
, ce->name);
+ if (chmod_cache_entry(ce, f
lip
) < 0)
+ fprintf(stderr, "cannot chmod
%cx '%s'\n", flip
, ce->name);
}
}