Commit f967538a authored by Chris Bills's avatar Chris Bills
Browse files

Add 'git history' alias

git log -p <filename> will show you the commit history that affects a
particular file (or the current branch, or another ref) and shows the
patch / diff of changes.

I find it pretty useful, even if git history is more to type, it's
easier for me to remember, and tab completion is fantastic.
parent 0cd3342e
......@@ -7,3 +7,4 @@
today = log --since "yesterday"
squash = "!_git_squash() { git rebase -i HEAD~$1; }; _git_squash"
stashed = stash list --pretty=format:'%gd: %h [%ar] %s'
history = log -p
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment