Skip to content

thaliaarchi/codesearch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Search

Code Search is a tool for indexing and then performing regular expression searches over large bodies of source code. It is a set of command-line programs written in Go.

For background and an overview of the commands, see http://swtch.com/~rsc/regexp/regexp4.html.

To install:

go get github.com/andrewarchi/codesearch/cmd/...

Use go get -u to update an existing installation.

Russ Cox
rsc@swtch.com
June 2015

About this fork

This fork introduces a number of features and bug fixes.

  • Skips files excluded by local, global, and system .gitignore files
  • Improves usage as library:
    • Returns error values, rather than exiting, to give control to caller
    • Adds regexp.CompileFlags
    • Adds (*index.Index).NumNames (evanj) and (*index.Index).Names
  • Searches current working directory and parents for a .csearchindex file (tomnomnom)
  • Adds flags to cindex:
    • -index path to the index (taliesinb)
    • -nogitignore do not skip files in .gitignore
    • -logskip log skipped files
  • Adds flags to cgrep:
  • Adds flags to csearch:
  • Updates build scripts for current Go tools

About

Fast, indexed regexp search over large file trees

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.4%
  • Shell 1.3%
  • Makefile 0.3%