Git: What files were changed since the last release?
24 Jun, 2011
1 minute read

Sometimes it handy to get a list out of git log that tells you which files were changed since your last release. It’s not straight forward, but very doable with the help of git log and grep. ~ Let’s say you want to view all the changed files since the last tagged release, v1.3.1:

git log --reverse --name-status HEAD...v1.3.1 | grep -e ^[MAD][[:space:]]

As you’re used to, this shows each files that *A*dded, *M*odified or *D*eleted. This command does not squash file changes. So it’s possible for a file to first be added, the deleted, then added again and later modified. The --reverse option shows file changes historically, so the first file changed after the v1.3.1 release is shown first.

Learn more about git!

If you're seeing this message you've probably enabled some form of adblocker. I respect that.

I use this space to show recommended books on Amazon.com in relation to the post you just read. This generates a small income that allows me to buy a book every now and then.