author | SZEDER Gábor <szeder@ira.uka.de> | |
Sat, 14 Feb 2009 22:21:04 +0000 (23:21 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 15 Feb 2009 05:27:35 +0000 (21:27 -0800) | ||
commit | 900569661bbfe5c0e56cf8b9c014a2f594bb174c | |
tree | 5503cded7e3af1fe7c8b56ea295109cc4c30220c | tree | snapshot |
parent | e9cc02f0e41fd5d2f51e3c3f2b4f8cfa9e434432 | commit | diff |
rerere: remove duplicated functions
Both rerere.c and builtin-rerere.c define the static functions
rr_path() and has_resolution() the exact same way. To eliminate this
code duplication this patch turns the functions in rerere.c
non-static, and makes builtin-rerere.c use them. Also, since this
puts these two functions into the global namespace, rename them to
rerere_path() and has_rerere_resolution(), respectively, and rename
their "name" parameter to "hex", because it better reflects what that
parameter actually is.
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Both rerere.c and builtin-rerere.c define the static functions
rr_path() and has_resolution() the exact same way. To eliminate this
code duplication this patch turns the functions in rerere.c
non-static, and makes builtin-rerere.c use them. Also, since this
puts these two functions into the global namespace, rename them to
rerere_path() and has_rerere_resolution(), respectively, and rename
their "name" parameter to "hex", because it better reflects what that
parameter actually is.
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-rerere.c | diff | blob | history | |
rerere.c | diff | blob | history | |
rerere.h | diff | blob | history |