提交 046613c5 编写于 作者: J Jonathan Nieder 提交者: Junio C Hamano

update-index --refresh --porcelain: add missing const

Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 b3c0494a
...@@ -511,7 +511,7 @@ extern void fill_stat_cache_info(struct cache_entry *ce, struct stat *st); ...@@ -511,7 +511,7 @@ extern void fill_stat_cache_info(struct cache_entry *ce, struct stat *st);
#define REFRESH_IGNORE_MISSING 0x0008 /* ignore non-existent */ #define REFRESH_IGNORE_MISSING 0x0008 /* ignore non-existent */
#define REFRESH_IGNORE_SUBMODULES 0x0010 /* ignore submodules */ #define REFRESH_IGNORE_SUBMODULES 0x0010 /* ignore submodules */
#define REFRESH_IN_PORCELAIN 0x0020 /* user friendly output, not "needs update" */ #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 {
struct lock_file *next; struct lock_file *next;
......
...@@ -1104,7 +1104,7 @@ static struct cache_entry *refresh_cache_ent(struct index_state *istate, ...@@ -1104,7 +1104,7 @@ static struct cache_entry *refresh_cache_ent(struct index_state *istate,
} }
static void show_file(const char * fmt, const char * name, int in_porcelain, 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) { if (in_porcelain && *first && header_msg) {
printf("%s\n", header_msg); printf("%s\n", header_msg);
...@@ -1114,7 +1114,7 @@ static void show_file(const char * fmt, const char * name, int in_porcelain, ...@@ -1114,7 +1114,7 @@ static void show_file(const char * fmt, const char * name, int in_porcelain,
} }
int refresh_index(struct index_state *istate, unsigned int flags, const char **pathspec, 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 i;
int has_errors = 0; int has_errors = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册