diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2012-10-29 20:04:21 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2012-10-29 20:04:21 -0500 |
commit | f45ec1a076e2347ba5d63eeb2d158f87b612e5cb (patch) | |
tree | 2e2bebc12e64e6f48eabde6010bf775b3fc6cd6e /src/stash.c | |
parent | 81eecc342b3580e9b05e501c8ee75c7e2e0dca1a (diff) | |
download | libgit2-f45ec1a076e2347ba5d63eeb2d158f87b612e5cb.tar.gz |
index refactoring
Diffstat (limited to 'src/stash.c')
-rw-r--r-- | src/stash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stash.c b/src/stash.c index 3011f00f0..9c9c5dce7 100644 --- a/src/stash.c +++ b/src/stash.c @@ -183,13 +183,13 @@ static int update_index_cb( if (!data->include_ignored) break; - return git_index_add(data->index, delta->new_file.path, 0); + return git_index_add_from_workdir(data->index, delta->new_file.path); case GIT_DELTA_UNTRACKED: if (!data->include_untracked) break; - return git_index_add(data->index, delta->new_file.path, 0); + return git_index_add_from_workdir(data->index, delta->new_file.path); case GIT_DELTA_ADDED: /* Fall through */ @@ -197,7 +197,7 @@ static int update_index_cb( if (!data->include_changed) break; - return git_index_add(data->index, delta->new_file.path, 0); + return git_index_add_from_workdir(data->index, delta->new_file.path); case GIT_DELTA_DELETED: if (!data->include_changed) @@ -206,7 +206,7 @@ static int update_index_cb( if ((pos = git_index_find(data->index, delta->new_file.path)) < 0) return -1; - if (git_index_remove(data->index, pos) < 0) + if (git_index_remove(data->index, delta->new_file.path, 0) < 0) return -1; default: |