summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b3c0494)
raw | patch | inline | side by side (parent: b3c0494)
author | Jonathan Nieder <jrnieder@gmail.com> | |
Tue, 22 Feb 2011 22:43:23 +0000 (22:43 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 23 Feb 2011 00:51:21 +0000 (16:51 -0800) |
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h | patch | blob | history | |
read-cache.c | patch | blob | history |
index 3abf8950bdd9f950b65ee4544e0cfe6517f1912a..4a758babec4b53bf8b98572128c5bbf11019beb3 100644 (file)
--- a/cache.h
+++ b/cache.h
#define REFRESH_IGNORE_MISSING 0x0008 /* ignore non-existent */
#define REFRESH_IGNORE_SUBMODULES 0x0010 /* ignore submodules */
#define REFRESH_IN_PORCELAIN 0x0020 /* user friendly output, not "needs update" */
-extern int refresh_index(struct index_state *, unsigned int flags, const char **pathspec, char *seen, char *header_msg);
+extern int refresh_index(struct index_state *, unsigned int flags, const char **pathspec, char *seen, const char *header_msg);
struct lock_file {
struct lock_file *next;
diff --git a/read-cache.c b/read-cache.c
index 4f2e890b01b0c27ef2e49080e1fd34bf67e969c7..15b0a73b6280b11dae91b2a1250ebdfb8a6c458f 100644 (file)
--- a/read-cache.c
+++ b/read-cache.c
}
static void show_file(const char * fmt, const char * name, int in_porcelain,
- int * first, char *header_msg)
+ int * first, const char *header_msg)
{
if (in_porcelain && *first && header_msg) {
printf("%s\n", header_msg);
}
int refresh_index(struct index_state *istate, unsigned int flags, const char **pathspec,
- char *seen, char *header_msg)
+ char *seen, const char *header_msg)
{
int i;
int has_errors = 0;