]>
Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - bin/git-up
6 # Like git-pull but show a short and sexy log of changes
7 # immediately after merging (git-up) or rebasing (git-reup).
9 # Inspired by Kyle Neath's `git up' alias:
10 # http://gist.github.com/249223
16 # when invoked as git-reup, run as `git pull --rebase'
17 test "$(basename $0)" = "git-reup" &&
18 PULL_ARGS
="--rebase $PULL_ARGS"
22 # show diffstat of all changes if we're pulling with --rebase. not
23 # sure why git-pull only does this when merging.
24 test "$(basename $0)" = "git-reup" && {
26 git
--no-pager diff --color --stat HEAD@
{1}..
|
30 # show an abbreviated commit log of stuff that was just merged.
32 git log
--color --pretty=oneline
--abbrev-commit HEAD@
{1}..
|