17
Share your git log commands
(git-scm.com)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
cat .local/bin/git-lastblameBy default it will show all the files in your current directory. I like it to get an idea of of the lifecycle of one area of a project. Files will be listed ordered by most recent commit. Note that it's not very fast so it'll probably choke on big repos. Alias as
g lb- press few key.This is an interesting one. But there is probably a better way instead running a Git command for every single file.
You're absolutely right. Here's a slopcoded rewrite that does run a ton faster and doesn't use
git last-modified(which is labelled experimental but was kind of the original inspiration). I even got it to do relative filenames instead of the full path to the root of the repo which I had been wanting.cat .local/bin/git-slopblame