projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
trivial: clarify, what are the config's user.name and user.email about
[git.git]
/
ls-files.c
diff --git
a/ls-files.c
b/ls-files.c
index
db2288a
..
cd87430
100644
(file)
--- a/
ls-files.c
+++ b/
ls-files.c
@@
-169,7
+169,7
@@
static int excluded_1(const char *pathname,
}
else {
/* match with FNM_PATHNAME:
}
else {
/* match with FNM_PATHNAME:
- * exclude has base (baselen long) i
n
plicitly
+ * exclude has base (baselen long) i
m
plicitly
* in front of it.
*/
int baselen = x->baselen;
* in front of it.
*/
int baselen = x->baselen;
@@
-344,7
+344,7
@@
static void show_dir_entry(const char *tag, struct nond_on_fs *ent)
return;
fputs(tag, stdout);
return;
fputs(tag, stdout);
- write_name_quoted("", ent->name + offset, line_terminator, stdout);
+ write_name_quoted("",
0,
ent->name + offset, line_terminator, stdout);
putchar(line_terminator);
}
putchar(line_terminator);
}
@@
-433,7
+433,8
@@
static void show_ce_entry(const char *tag, struct cache_entry *ce)
if (!show_stage) {
fputs(tag, stdout);
if (!show_stage) {
fputs(tag, stdout);
- write_name_quoted("", ce->name + offset, line_terminator, stdout);
+ write_name_quoted("", 0, ce->name + offset,
+ line_terminator, stdout);
putchar(line_terminator);
}
else {
putchar(line_terminator);
}
else {
@@
-442,7
+443,8
@@
static void show_ce_entry(const char *tag, struct cache_entry *ce)
ntohl(ce->ce_mode),
sha1_to_hex(ce->sha1),
ce_stage(ce));
ntohl(ce->ce_mode),
sha1_to_hex(ce->sha1),
ce_stage(ce));
- write_name_quoted("", ce->name + offset, line_terminator, stdout);
+ write_name_quoted("", 0, ce->name + offset,
+ line_terminator, stdout);
putchar(line_terminator);
}
}
putchar(line_terminator);
}
}
@@
-560,7
+562,7
@@
static void verify_pathspec(void)
static const char ls_files_usage[] =
"git-ls-files [-z] [-t] (--[cached|deleted|others|stage|unmerged|killed|modified])* "
"[ --ignored ] [--exclude=<pattern>] [--exclude-from=<file>] "
static const char ls_files_usage[] =
"git-ls-files [-z] [-t] (--[cached|deleted|others|stage|unmerged|killed|modified])* "
"[ --ignored ] [--exclude=<pattern>] [--exclude-from=<file>] "
- "[ --exclude-per-directory=<filename> ] [--] [<file>]*";
+ "[ --exclude-per-directory=<filename> ] [--
full-name] [--
] [<file>]*";
int main(int argc, const char **argv)
{
int main(int argc, const char **argv)
{