summaryrefslogtreecommitdiff
path: root/tree.c
diff options
context:
space:
mode:
authorLibravatar Jakub Narebski <jnareb@gmail.com>2008-03-05 09:31:55 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-03-05 13:38:34 -0800
commitc582abae46725504cee9ff91816c979989632f07 (patch)
tree28f4572569cfb48c38a9278db31f408f8bcde2cc /tree.c
parentRevert "unpack-objects: prevent writing of inconsistent objects" (diff)
downloadtgif-c582abae46725504cee9ff91816c979989632f07.tar.xz
gitweb: Fix and simplify pickaxe search
Instead of using "git-rev-list | git-diff-tree" pipeline for pickaxe search, use git-log with appropriate options. Besides reducing number of forks by one, this allows to use list form of open, which in turn allow to not worry about quoting arguments and to avoid forking shell. The options to git-log were chosen to reduce required changes in pickaxe git command output parsing; gitweb still parses returned commits one by one. Parsing "pickaxe" output is simplified: git_search now reuses parse_difftree_raw_line and writes affected files as they arrive using the fact that commit name goes always before [raw] diff. While at it long bug of pickaxe search was fixed, namely that the last commit found by pickaxe search was never shown. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree.c')
0 files changed, 0 insertions, 0 deletions