gpg-interface: move parse_signature() to where it should be
commitf87252aec76c6b4849e2b2141bb916adb7d9b99f
authorJunio C Hamano <gitster@pobox.com>
Tue, 19 Aug 2014 20:18:07 +0000 (19 13:18 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Aug 2014 22:36:00 +0000 (22 15:36 -0700)
treea6086e429c63fa76022eaac9b1250a4dcf612e83
parentc96f2bf8675183fc4a6a0b7611907a6dbaf9621b
gpg-interface: move parse_signature() to where it should be

Our signed-tag objects set the standard format used by Git to store
GPG-signed payload (i.e. the payload followed by its detached
signature), and it made sense to have a helper to find the boundary
between the payload and its signature in tag.c back then.

Newer code added later to parse other kinds of objects that learned
to use the same format to store GPG-signed payload (e.g. signed
commits), however, kept using the helper from the same location.

Move it to gpg-interface; the helper is no longer about signed tag,
but it is how our code and data interact with GPG.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
gpg-interface.c
gpg-interface.h
tag.c
tag.h