author | Hui Wang <Hui.Wang@windriver.com> | |
Wed, 7 Sep 2011 10:37:47 +0000 (18:37 +0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 7 Sep 2011 18:47:43 +0000 (11:47 -0700) | ||
commit | 5bdf0a8468efd55cf8f13cafdb946c0ade3372fe | |
tree | 4502b09ed2356f1c0f2dda91446dc8d106ef88a0 | tree | snapshot |
parent | f696543dad6c7ba27b0c4fab167a5687263a9ba0 | commit | diff |
sha1_file: normalize alt_odb path before comparing and storing
When it needs to compare and add an alt object path to the
alt_odb_list, we normalize this path first since comparing normalized
path is easy to get correct result.
Use strbuf to replace some string operations, since it is cleaner and
safer.
Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Hui Wang <Hui.Wang@windriver.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When it needs to compare and add an alt object path to the
alt_odb_list, we normalize this path first since comparing normalized
path is easy to get correct result.
Use strbuf to replace some string operations, since it is cleaner and
safer.
Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Hui Wang <Hui.Wang@windriver.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c | diff | blob | history |