diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-07-22 18:24:00 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-22 18:24:01 (GMT) |
commit | d3aeb31dc410a71ee41b87328f0d71996417294f (patch) | |
tree | c9792a61c95180c0eeb4c85f5c97fbde63aa53d0 /builtin/grep.c | |
parent | e9f1a6c189c34a7ea98cbdb92acc677a72a5b4ea (diff) | |
parent | 9c5e6c802cde9881785b7f1b3278b97be4aabd82 (diff) | |
download | git-d3aeb31dc410a71ee41b87328f0d71996417294f.zip git-d3aeb31dc410a71ee41b87328f0d71996417294f.tar.gz git-d3aeb31dc410a71ee41b87328f0d71996417294f.tar.bz2 |
Merge branch 'nd/const-struct-cache-entry'
* nd/const-struct-cache-entry:
Convert "struct cache_entry *" to "const ..." wherever possible
Diffstat (limited to 'builtin/grep.c')
-rw-r--r-- | builtin/grep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/grep.c b/builtin/grep.c index 159e65d..0223d70 100644 --- a/builtin/grep.c +++ b/builtin/grep.c @@ -376,7 +376,7 @@ static int grep_cache(struct grep_opt *opt, const struct pathspec *pathspec, int read_cache(); for (nr = 0; nr < active_nr; nr++) { - struct cache_entry *ce = active_cache[nr]; + const struct cache_entry *ce = active_cache[nr]; if (!S_ISREG(ce->ce_mode)) continue; if (!match_pathspec_depth(pathspec, ce->name, ce_namelen(ce), 0, NULL)) |