summaryrefslogtreecommitdiff
path: root/tag.h
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-04-12 23:25:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-04-13 04:45:13 (GMT)
commit28de5b6b400fcdbd2d0665bc0cec7d7e4b813b43 (patch)
treeeaa842b6a6719b73269e8ba2f2652a4377d492d5 /tag.h
parent628511a5883fa809e86b34ebc147ac62eb214458 (diff)
downloadgit-28de5b6b400fcdbd2d0665bc0cec7d7e4b813b43.zip
git-28de5b6b400fcdbd2d0665bc0cec7d7e4b813b43.tar.gz
git-28de5b6b400fcdbd2d0665bc0cec7d7e4b813b43.tar.bz2
tag.c: Refactor parse_tag_buffer to be saner to program
This code was horribly ugly to follow. The structure of the headers in an annotated tag object must follow a prescribed order, and most of these are required. Simplify the entire parsing logic by going through the headers in the order they are supposed to appear in, acting on each header as its identified in the buffer. This change has the same behavior as the older version, its just easier to read and maintain. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tag.h')
0 files changed, 0 insertions, 0 deletions