]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
refs.c: add a public is_branch function
authorRonnie Sahlberg <sahlberg@google.com>
Tue, 15 Jul 2014 23:02:38 +0000 (16:02 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Jul 2014 20:06:41 +0000 (13:06 -0700)
commite7e0f26eb64de205acaac63da89f47aab78ba229
tree2f31e5198ae6e3b1d6a13f093ba8fe314b359114
parentebc5da3208824e25a89672a3b91bd13629b215fe
refs.c: add a public is_branch function

Both refs.c and fsck.c have their own private copies of the is_branch function.
Delete the is_branch function from fsck.c and make the version in refs.c
public.

Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fsck.c
refs.c
refs.h