Skip to content
forked from google/codesearch

About

Fast, indexed regexp search over large file trees

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

53 Commits

Folders and files

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.

This is a fork of Russ Cox's https://github.com/google/codesearch.

What is different about this fork?

  • Add GitHub Actions CI to run Go tests on PRs and master. (#2)
  • Remove cmd/ and lib/ directories — this fork is consumed as a library only. (#3)
  • Add versioning documentation and update module path to github.com/anitschke/codesearch. (#4)
  • Add configurable index limits (maxFileLen, maxLineLen, maxTextTrigrams) via functional options on Create. (#5)
  • Add WithZipExtensions option to configure which file extensions are treated as zip archives for indexing (e.g., .slx, .jar). (#6)
  • Close the index file and temporary files when IndexWriter.Flush finishes, and unmap the temporary posting file, so they no longer stay open (on Windows, open files can't be deleted and keep their volume from being dismounted). (#7)
  • Merge upstream 74a12a9, a small sortPost performance optimization that avoids copying its counting array. (#8)

Versioning

This project follows Semantic Versioning.

Cutting a release

  1. Ensure master is in the state you want to release.
  2. Tag and push:
    VERSION=v1.2.3; git tag $VERSION && git push origin $VERSION

Depending on this fork

// go.mod
require github.com/anitschke/codesearch v1.2.3

About

Fast, indexed regexp search over large file trees

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages