builtin-add.c: restructure the code for maintainability
authorJunio C Hamano <gitster@pobox.com>
Mon, 21 Jul 2008 08:24:17 +0000 (01:24 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 26 Jul 2008 04:14:21 +0000 (21:14 -0700)
commit041aee31be378b3b38e3a0913b29970a7f78873b
tree88a21edbf55413666e1835e7e0e57b327efe011b
parentb0320eaf6a25fbc4adf35d611c27006e6d853aa8
builtin-add.c: restructure the code for maintainability

A private function add_files_to_cache() in builtin-add.c was borrowed by
checkout and commit re-implementors without getting properly refactored to
more library-ish place.  This does the refactoring.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-add.c
cache.h
read-cache.c