summaryrefslogtreecommitdiff
path: root/src/apply.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-11-21 15:16:01 -0500
committerEdward Thomson <ethomson@github.com>2016-05-26 13:01:08 -0500
commit53571f2f0c5cbb30e86aa0b8095f51c09c85761e (patch)
treed23f6a18c55417e2355118e5efae5ef8a04b110d /src/apply.c
parent440e3bae10a4758d5de8d7b8699bf4c412c1a163 (diff)
downloadlibgit2-53571f2f0c5cbb30e86aa0b8095f51c09c85761e.tar.gz
vector: more sensible names for `grow_at`/`shrink_at`
Diffstat (limited to 'src/apply.c')
-rw-r--r--src/apply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apply.c b/src/apply.c
index a9b493519..876860754 100644
--- a/src/apply.c
+++ b/src/apply.c
@@ -137,10 +137,10 @@ static int update_hunk(
int error = 0;
if (postlen > prelen)
- error = git_vector_grow_at(
+ error = git_vector_insert_null(
&image->lines, linenum, (postlen - prelen));
else if (prelen > postlen)
- error = git_vector_shrink_at(
+ error = git_vector_remove_range(
&image->lines, linenum, (prelen - postlen));
if (error) {