summaryrefslogtreecommitdiff
path: root/apply.h
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-08-09 15:54:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-08-09 17:21:45 (GMT)
commit881529c84656e7ff41379c0684df0ff9a796d444 (patch)
treedfcb91dad1a4d2e1b918c83bcd02f4f76b46223b /apply.h
parent95d67879735cfecfdd85f89e59d993c5b4de8835 (diff)
downloadgit-881529c84656e7ff41379c0684df0ff9a796d444.zip
git-881529c84656e7ff41379c0684df0ff9a796d444.tar.gz
git-881529c84656e7ff41379c0684df0ff9a796d444.tar.bz2
apply: remove prefix_length member from apply_state
Use a NULL-and-NUL check to see if we have a prefix and consistently use C string functions on it instead of storing its length in a member of struct apply_state. This avoids strlen() calls and simplifies the code. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'apply.h')
-rw-r--r--apply.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/apply.h b/apply.h
index b3d6783..d9b3957 100644
--- a/apply.h
+++ b/apply.h
@@ -35,7 +35,6 @@ enum apply_verbosity {
struct apply_state {
const char *prefix;
- int prefix_length;
/* These are lock_file related */
struct lock_file *lock_file;