diff options
author | 2008-02-09 15:40:19 +0100 | |
---|---|---|
committer | 2008-02-09 23:57:08 -0800 | |
commit | c3a670de50589dedf2d9b83305e8bd0ff63a1a60 (patch) | |
tree | 303820b577a8d046a0cddddd9fbc58bd362c529d /builtin-diff-tree.c | |
parent | git-p4: Fix indentation from tab to spaces (diff) | |
download | tgif-c3a670de50589dedf2d9b83305e8bd0ff63a1a60.tar.xz |
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>
Diffstat (limited to 'builtin-diff-tree.c')
0 files changed, 0 insertions, 0 deletions