aboutsummaryrefslogtreecommitdiff
path: root/bp.c
AgeCommit message (Collapse)Author
2021-08-23Always print file when context is ALLBruce Hill
2021-08-06Changed it so --replace makes context default to `all`, but --inplaceBruce Hill
doesn't, so it can still be easily used as a filter.
2021-08-06Inplace modifying should set context to allBruce Hill
2021-08-06Properly set modifying_file/backup_file in case of errorsBruce Hill
2021-08-06Improved, cleaner/faster/more flexible return value checksBruce Hill
2021-08-06Use `git ls-files -z` instead of newline-separatedBruce Hill
2021-08-06Reduced code duplication on inplace modeBruce Hill
2021-08-06Deprecated --confirm flagBruce Hill
2021-08-02Added -B and -A options to match grepBruce Hill
2021-08-02Context flag: -c -> -C (to match grep), and confirm flag: -C -> -cBruce Hill
2021-08-01Renamed matchviz -> explainBruce Hill
2021-08-01Moved caching code onto the file, which fixed an issue with file slicingBruce Hill
having stale cache values.
2021-08-01Cleanup of space/line skipping codeBruce Hill
2021-08-01Changed how definitions workBruce Hill
2021-07-30Added -w/--word flagBruce Hill
2021-07-30xfree() -> delete()Bruce Hill
2021-07-30Cleaner checking of stdlib negative returnsBruce Hill
2021-07-30Improved error checkingBruce Hill
2021-07-30Removing DEBUG_HEAP, just do a full cleanup all the timeBruce Hill
2021-07-26Introduced cache to greatly speed up many use casesBruce Hill
2021-07-17Removed unnecessary codeBruce Hill
2021-07-17Factored debug visualization into its own fileBruce Hill
2021-07-03Switched /etc/xdg/bp -> /etc/bpBruce Hill
2021-05-31Added lots of extra compiler flagsBruce Hill
2021-05-22Minor splint fixesBruce Hill
2021-05-20Renamed file_t.contents -> file_t.start, added file_t.memory forBruce Hill
canonical tracking of memory for mmap, simplified json printing, and added support for initiating searches on a specific line (and/or column).
2021-05-20Fixed up JSON outputBruce Hill
2021-05-19Fix for binary file detection bug.Bruce Hill
2021-05-19Fancier string escape sequences and a bit of cleanup.Bruce Hill
2021-05-18CleanupBruce Hill
2021-05-18True -> 1Bruce Hill
2021-05-12Moved settings into a structBruce Hill
2021-05-12Added --color flagBruce Hill
2021-03-26Removed fallback where bp prompts for a pattern if none is given.Bruce Hill
Instead print usage and exit.
2021-03-15Debug errorBruce Hill
2021-03-03Fix for permissions/ownership getting screwed up with inplace modifyingBruce Hill
of files. With the new change, temporary files are no longer created on the filesystem and the file is entirely modified inplace (with an in-memory copy kept on hand for matching).
2021-02-07Slightly cleaner flag parsingBruce Hill
2021-01-26Pulled git code into a separate functionBruce Hill
2021-01-26Replaced returns with exit()s in mainBruce Hill
2021-01-26Cleanup of return/exit paths for main()Bruce Hill
2021-01-26Removed check() and replaced with err()/errx()Bruce Hill
2021-01-20Added --skip flag for skipping over patternsBruce Hill
2021-01-18Bumped prefix checker on is_text_fileBruce Hill
2021-01-18Fixed buggy git ls-files line readingBruce Hill
2021-01-18More boolsBruce Hill
2021-01-18More boolsBruce Hill
2021-01-18A few more pedantic cleanupsBruce Hill
2021-01-18More static analysis cleanupBruce Hill
2021-01-18More static analyzer cleanup, including switching to use bools whereBruce Hill
appropriate and EXIT_SUCESS/EXIT_FAILURE
2021-01-18Checking more return values (per static analyzer)Bruce Hill