projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add "--cacheinfo" option to update-cache.
[git.git]
/
check-files.c
diff --git
a/check-files.c
b/check-files.c
index
c74bf87
..
7d16691
100644
(file)
--- a/
check-files.c
+++ b/
check-files.c
@@
-18,22
+18,22
@@
static void check_file(const char *path)
/* Nonexistent is fine */
if (fd < 0) {
if (errno != ENOENT)
/* Nonexistent is fine */
if (fd < 0) {
if (errno != ENOENT)
-
usag
e("%s: %s", path, strerror(errno));
+
di
e("%s: %s", path, strerror(errno));
return;
}
/* Exists but is not in the cache is not fine */
pos = cache_name_pos(path, strlen(path));
if (pos < 0)
return;
}
/* Exists but is not in the cache is not fine */
pos = cache_name_pos(path, strlen(path));
if (pos < 0)
-
usag
e("preparing to update existing file '%s' not in cache", path);
+
di
e("preparing to update existing file '%s' not in cache", path);
ce = active_cache[pos];
if (fstat(fd, &st) < 0)
ce = active_cache[pos];
if (fstat(fd, &st) < 0)
-
usag
e("fstat(%s): %s", path, strerror(errno));
+
di
e("fstat(%s): %s", path, strerror(errno));
changed = cache_match_stat(ce, &st);
if (changed)
changed = cache_match_stat(ce, &st);
if (changed)
-
usag
e("preparing to update file '%s' not uptodate in cache", path);
+
di
e("preparing to update file '%s' not uptodate in cache", path);
}
int main(int argc, char **argv)
}
int main(int argc, char **argv)