Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Feb 10, 2008

  1. Marco Costalba

    Avoid a useless prefix lookup in strbuf_expand()

    Currently, the --pretty=format prefix is looked up in a
    tight loop in strbuf_expand(), if prefix is found it is then
    used as argument for format_commit_item() that does another
    search by a switch statement to select the proper operation.
    
    Because the switch statement is already able to discard
    unknown matches we don't need the prefix lookup before
    to call format_commit_item().
    
    Signed-off-by: Marco Costalba <mcostalba@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    authored February 09, 2008 gitster committed February 09, 2008
Something went wrong with that request. Please try again.