This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# recent_blame: Find the most recent changes related to a keyword. | |
# | |
# This function searches for a keyword in your git repository using ripgrep, | |
# finds the files containing it, and then inspects the git blame for those | |
# files. It compiles a list of the most recent lines across all found | |
# files that are related to your keyword. | |
# | |
# By default, it skips files listed in your .gitignore (a default behavior |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const fs = require('fs'); | |
const readline = require('readline'); | |
// Function to print to stderr | |
function printerr(s) { | |
process.stderr.write(s + '\n'); | |
} |