When I'm editing a Git commit message, I sometimes like to browse recent commits to the same file(s). That is, I'd like to view the output of
git log $list_of_files_with_staged_changes.
Git commit mode (from Magit) provides some nice features, including a history of my recent commit messages (
git-commit-next-message). But these are only commits that I've done in the same session, not necessarily in the same repository. Here I only want to see commit messages that are relevant to the files I'm committing, and I want them no matter how old they are. I also want the commit IDs.
I also have Egg (Emacs's Got Git) installed, and it provides a quick way to access the log for all the files in the repository (
C-x v l:
egg-log). But that's too much noise.
While editing a Git commit message, how can I view the log of the files I'm committing? I can use both Egg and Magit if convenient, as well as the built-in vc-git.