Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Oct 20, 2009
  1. @jherland @gitster

    Teach notes code to free its internal data structures on request

    jherland authored gitster committed
    There's no need to be rude to memory-concious callers...
    
    This patch has been improved by the following contributions:
    - Junio C Hamano: avoid old-style declaration
    
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    Signed-off-by: Johan Herland <johan@herland.net>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  2. @jherland @gitster

    Add flags to get_commit_notes() to control the format of the note string

    jherland authored gitster committed
    This patch adds the following flags to get_commit_notes() for adjusting the
    format of the produced note string:
    - NOTES_SHOW_HEADER: Print "Notes:" line before the notes contents
    - NOTES_INDENT: Indent notes contents by 4 spaces
    
    Suggested-by: Johannes Schindelin <johannes.schindelin@gmx.de>
    Signed-off-by: Johan Herland <johan@herland.net>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  3. @dscho @gitster

    Introduce commit notes

    dscho authored gitster committed
    Commit notes are blobs which are shown together with the commit
    message.  These blobs are taken from the notes ref, which you can
    configure by the config variable core.notesRef, which in turn can
    be overridden by the environment variable GIT_NOTES_REF.
    
    The notes ref is a branch which contains "files" whose names are
    the names of the corresponding commits (i.e. the SHA-1).
    
    The rationale for putting this information into a ref is this: we
    want to be able to fetch and possibly union-merge the notes,
    maybe even look at the date when a note was introduced, and we
    want to store them efficiently together with the other objects.
    
    This patch has been improved by the following contributions:
    - Thomas Rast: fix core.notesRef documentation
    - Tor Arne Vestbø: fix printing of multi-line notes
    - Alex Riesen: Using char array instead of char pointer costs less BSS
    - Johan Herland: Plug leak when msg is good, but msglen or type causes return
    
    Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
    Signed-off-by: Thomas Rast <trast@student.ethz.ch>
    Signed-off-by: Tor Arne Vestbø <tavestbo@trolltech.com>
    Signed-off-by: Johan Herland <johan@herland.net>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    
    get_commit_notes(): Plug memory leak when 'if' triggers, but not because of read_sha1_file() failure
Commits on Feb 11, 2009
  1. @gitster

    Revert "Merge branch 'js/notes'"

    gitster authored
    This reverts commit 7b75b33, reversing
    changes made to 5d680a6.
Commits on Dec 21, 2008
  1. @dscho @gitster

    Introduce commit notes

    dscho authored gitster committed
    Commit notes are blobs which are shown together with the commit
    message.  These blobs are taken from the notes ref, which you can
    configure by the config variable core.notesRef, which in turn can
    be overridden by the environment variable GIT_NOTES_REF.
    
    The notes ref is a branch which contains "files" whose names are
    the names of the corresponding commits (i.e. the SHA-1).
    
    The rationale for putting this information into a ref is this: we
    want to be able to fetch and possibly union-merge the notes,
    maybe even look at the date when a note was introduced, and we
    want to store them efficiently together with the other objects.
    
    Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Something went wrong with that request. Please try again.