Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Mar 13, 2010
  1. @trast @gitster

    notes: track whether notes_trees were changed at all

    trast authored gitster committed
    Currently, the notes copying is a bit wasteful since it always creates
    new trees, even if no notes were copied at all.
    
    Teach add_note() and remove_note() to flag the affected notes tree as
    changed ('dirty').  Then teach builtin/notes.c to use this knowledge
    and avoid committing trees that weren't changed.
    
    Signed-off-by: Thomas Rast <trast@student.ethz.ch>
    Acked-by: Johan Herland <johan@herland.net>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  2. @trast @gitster

    notes: implement 'git notes copy --stdin'

    trast authored gitster committed
    This implements a mass-copy command that takes a sequence of lines in
    the format
    
      <from-sha1> SP <to-sha1> [ SP <rest> ] LF
    
    on stdin, and copies each <from-sha1>'s notes to the <to-sha1>.  The
    <rest> is ignored.  The intent, of course, is that this can read the
    same input that the 'post-rewrite' hook gets.
    
    The copy_note() function is exposed for everyone's and in particular
    the next commit's use.
    
    Signed-off-by: Thomas Rast <trast@student.ethz.ch>
    Acked-by: Johan Herland <johan@herland.net>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  3. @trast @gitster

    Support showing notes from more than one notes tree

    trast authored gitster committed
    With this patch, you can set notes.displayRef to a glob that points at
    your favourite notes refs, e.g.,
    
    [notes]
    	displayRef = refs/notes/*
    
    Then git-log and friends will show notes from all trees.
    
    Thanks to Junio C Hamano for lots of feedback, which greatly
    influenced the design of the entire series and this commit in
    particular.
    
    Signed-off-by: Thomas Rast <trast@student.ethz.ch>
    Acked-by: Johan Herland <johan@herland.net>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Something went wrong with that request. Please try again.