aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Riesen <fork0@t-online.de>2006-05-21 22:45:46 +0200
committerJunio C Hamano <junkio@cox.net>2006-05-21 16:40:45 -0700
commitfbd01abf50488d8ed94c36bdd5bfc2a4ddafb8a2 (patch)
tree1774c69745a3218f9dcabf1742b3b35dfb9db2f9
parent9e848163eda686093f689c25cfa9937ed2a9fdf8 (diff)
downloadgit-fbd01abf50488d8ed94c36bdd5bfc2a4ddafb8a2.tar.gz
git-fbd01abf50488d8ed94c36bdd5bfc2a4ddafb8a2.tar.xz
remove superflous "const"
Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--builtin-grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-grep.c b/builtin-grep.c
index d09ddf048..53de8a883 100644
--- a/builtin-grep.c
+++ b/builtin-grep.c
@@ -518,7 +518,7 @@ static int external_grep(struct grep_opt *opt, const char **paths, int cached)
argc = nr;
for (i = 0; i < active_nr; i++) {
struct cache_entry *ce = active_cache[i];
- const char *name;
+ char *name;
if (ce_stage(ce) || !S_ISREG(ntohl(ce->ce_mode)))
continue;
if (!pathspec_matches(paths, ce->name))