refs.c: move dwim_ref()/dwim_log() from sha1_name.c
authorJunio C Hamano <gitster@pobox.com>
Wed, 12 Oct 2011 17:35:38 +0000 (10:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Oct 2011 17:35:38 +0000 (10:35 -0700)
Both dwim_ref()/dwim_log() functions are intimately related to the ref
parsing rules defined in refs.c and better fits there. Move them together
with substitute_branch_name(), a file scope static helper function.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found