summaryrefslogtreecommitdiff
path: root/userdiff.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-01-15 12:50:54 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-01-15 12:54:00 -0800
commit7e622650d756955a94f546866eddd51506aa93a3 (patch)
tree7eb51da4665f07adb7e0ee26ab3d6877eabadb37 /userdiff.c
parentgrep: rip out pessimization to use fixmatch() (diff)
downloadtgif-7e622650d756955a94f546866eddd51506aa93a3.tar.xz
grep: prepare to run outside of a work tree
This moves the call to setup_git_directory() for running "grep" from the "git" wrapper to the implementation of the "grep" subcommand. A new variable "use_index" is always true at this stage in the series, and when it is on, we require that we are in a directory that is under git control. To make sure we die the same way, we make a second call into setup_git_directory() when we detect this situation. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'userdiff.c')
0 files changed, 0 insertions, 0 deletions