update-index --refresh --porcelain: add missing const
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jonathan Nieder committed
Feb 22, 2011 at 22:43 UTC
046613c5465e4fc0611f93a5ef31d3815fb50c22
2 files changed
+3
-3
cache.h
+1
-1
@@ -511,7 +511,7 @@ extern void fill_stat_cache_info(struct cache_entry *ce, struct stat *st);
511
#define REFRESH_IGNORE_MISSING 0x0008 /* ignore non-existent */
512
#define REFRESH_IGNORE_SUBMODULES 0x0010 /* ignore submodules */
513
#define REFRESH_IN_PORCELAIN 0x0020 /* user friendly output, not "needs update" */
514
-extern int refresh_index(struct index_state *, unsigned int flags, const char **pathspec, char *seen, char *header_msg);
514
+extern int refresh_index(struct index_state *, unsigned int flags, const char **pathspec, char *seen, const char *header_msg);
515
516
struct lock_file {
517
struct lock_file *next;
read-cache.c
+2
-2
@@ -1104,7 +1104,7 @@ static struct cache_entry *refresh_cache_ent(struct index_state *istate,
1104
}
1105
1106
static void show_file(const char * fmt, const char * name, int in_porcelain,
1107
- int * first, char *header_msg)
1107
+ int * first, const char *header_msg)
1108
{
1109
if (in_porcelain && *first && header_msg) {
1110
printf("%s\n", header_msg);
@@ -1114,7 +1114,7 @@ static void show_file(const char * fmt, const char * name, int in_porcelain,
1114
}
1115
1116
int refresh_index(struct index_state *istate, unsigned int flags, const char **pathspec,
1117
- char *seen, char *header_msg)
1117
+ char *seen, const char *header_msg)
1118
{
1119
int i;
1120
int has_errors = 0;