diff options
author | Junio C Hamano <junkio@cox.net> | 2006-11-11 14:49:25 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-11-11 14:49:25 -0800 |
commit | 5a4ffc8035e7bac6864482415afa3b1e240de6dd (patch) | |
tree | ce48b4dd8e33dc676ff20ffe2ace1184c765dc94 | |
parent | git-annotate: fix -S on graft file with comments. (diff) | |
parent | path-list: fix path-list-insert return value (diff) | |
download | tgif-5a4ffc8035e7bac6864482415afa3b1e240de6dd.tar.xz |
Merge branch 'maint'
* maint:
path-list: fix path-list-insert return value
-rw-r--r-- | path-list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/path-list.c b/path-list.c index 0c332dc7b5..f8800f8e66 100644 --- a/path-list.c +++ b/path-list.c @@ -57,7 +57,7 @@ struct path_list_item *path_list_insert(const char *path, struct path_list *list int index = add_entry(list, path); if (index < 0) - index = 1 - index; + index = -1 - index; return list->items + index; } |