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)
commitff74f7f1187cbf1b46e85ed1bde1f194991f919c
treee5b5dde1d991fc1202ff8dbec8d63fa7ff3a4b93
parentdce4bab6567de7c458b334e029e3dedcab5f2648
refs.c: move dwim_ref()/dwim_log() from sha1_name.c

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>
refs.c
sha1_name.c