diff options
author | Jakub Narebski <jnareb@gmail.com> | 2008-03-05 09:31:55 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-03-05 13:38:34 -0800 |
commit | c582abae46725504cee9ff91816c979989632f07 (patch) | |
tree | 28f4572569cfb48c38a9278db31f408f8bcde2cc /object.c | |
parent | c95b3ad9ea310ec89e31a21edecaaf2c374e2c46 (diff) | |
download | git-c582abae46725504cee9ff91816c979989632f07.tar.gz git-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 'object.c')
0 files changed, 0 insertions, 0 deletions