diff options
author | Russell Belfer <arrbee@arrbee.com> | 2012-01-17 06:00:18 +0400 |
---|---|---|
committer | Russell Belfer <arrbee@arrbee.com> | 2012-01-17 06:00:18 +0400 |
commit | 83bfbdf593a76c591bb9cbd40cec6fca36c81a9c (patch) | |
tree | 2a6e6d9e3c2ba568fa749a2a483a0f9012d770ff /src/attr.c | |
parent | a51cd8e6f6724079a552b75e014f792f3f68e158 (diff) |
Remove poor git__removechar function
Going back over this, the git__removechar function was not
needed (only invoked once) and is actually mislabeled. As
implemented, it really only made sense for removing backslash
characters, since two of the "removed" characters in a row
would include the second one -- i.e. it really implements
stripping backslash-escaped strings where a backslash allows
internal whitespace in a word.
Diffstat (limited to 'src/attr.c')
-rw-r--r-- | src/attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attr.c b/src/attr.c index 3fe76d124..fa1a4f121 100644 --- a/src/attr.c +++ b/src/attr.c @@ -232,7 +232,7 @@ int git_attr_cache__push_file( file = git_hashtable_lookup(cache->files, filename); if (file == NULL && git_futils_exists(filename) == GIT_SUCCESS) { if ((error = git_attr_file__new(&file)) == GIT_SUCCESS) - error = (*loader)(repo, filename, file); + error = loader(repo, filename, file); add_to_cache = (error == GIT_SUCCESS); } |