Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Nov 5, 2011
  1. Split GPG interface into its own helper library

    This mostly moves existing code from builtin/tag.c (for signing)
    and builtin/verify-tag.c (for verifying) to a new gpg-interface.c
    file to provide a more generic library interface.
     - sign_buffer() takes a payload strbuf, a signature strbuf, and a signing
       key, runs "gpg" to produce a detached signature for the payload, and
       appends it to the signature strbuf. The contents of a signed tag that
       concatenates the payload and the detached signature can be produced by
       giving the same strbuf as payload and signature strbuf.
     - verify_signed_buffer() takes a payload and a detached signature as
       <ptr, len> pairs, and runs "gpg --verify" to see if the payload matches
       the signature. It can optionally capture the output from GPG to allow
       the callers to pretty-print it in a way more suitable for their
    "verify-tag" (aka "tag -v") used to save the whole tag contents as if it
    is a detached signature, and fed gpg the payload part of the tag. It
    relied on gpg to fail when the given tag is not signed but just is
    annotated.  The updated run_gpg_verify() function detects the lack of
    detached signature in the input, and errors out without bothering "gpg".
    Signed-off-by: Junio C Hamano <>
Commits on Sep 6, 2010
  1. Merge branch 'xx/trivial' into maint

    * xx/trivial:
      tag.c: whitespace breakages fix
      Fix whitespace issue in object.c
      t5505: add missing &&
  2. tag.c: whitespace breakages fix

    Signed-off-by: Junio C Hamano <>
Commits on Mar 2, 2008
  1. Merge branch 'mk/maint-parse-careful'

    * mk/maint-parse-careful:
      receive-pack: use strict mode for unpacking objects
      index-pack: introduce checking mode
      unpack-objects: prevent writing of inconsistent objects
      unpack-object: cache for non written objects
      add common fsck error printing function
      builtin-fsck: move common object checking code to fsck.c
      builtin-fsck: reports missing parent commits
      Remove unused object-ref code
      builtin-fsck: move away from object-refs to fsck_walk
      add generic, type aware object chain walker
Something went wrong with that request. Please try again.