Skip to content

Commit 046613c

Browse files
jrngitster
authored andcommitted
update-index --refresh --porcelain: add missing const
Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b3c0494 commit 046613c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ extern void fill_stat_cache_info(struct cache_entry *ce, struct stat *st);
511511
#define REFRESH_IGNORE_MISSING 0x0008 /* ignore non-existent */
512512
#define REFRESH_IGNORE_SUBMODULES 0x0010 /* ignore submodules */
513513
#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);
515515

516516
struct lock_file {
517517
struct lock_file *next;

read-cache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ static struct cache_entry *refresh_cache_ent(struct index_state *istate,
11041104
}
11051105

11061106
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)
11081108
{
11091109
if (in_porcelain && *first && header_msg) {
11101110
printf("%s\n", header_msg);
@@ -1114,7 +1114,7 @@ static void show_file(const char * fmt, const char * name, int in_porcelain,
11141114
}
11151115

11161116
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)
11181118
{
11191119
int i;
11201120
int has_errors = 0;

0 commit comments

Comments
 (0)