]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
for_each_reflog_ent(): extract a helper to process a single entry
authorJunio C Hamano <gitster@pobox.com>
Fri, 8 Mar 2013 18:36:43 +0000 (10:36 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Mar 2013 21:59:57 +0000 (13:59 -0800)
commit9a7a183bd216fc7f824460e1f6d27886938a6152
treeeffaabf3d4fb459fa0f4ea8884ac96bd57f7eefb
parent7e2010537e96d0a1144520222f20ba1dc3d61441
for_each_reflog_ent(): extract a helper to process a single entry

Split the logic that takes a single line of reflog entry in a
strbuf, parses the message, and calls the callback function out of
the loop into a separate helper function.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c