January 2009 Archives

Sub::Alias - 替函式取別名

| No Comments | No TrackBacks

最近在寫的 Sub::Alias 模組能夠很便利地替函式取別名:

use Sub::Alias;

sub name { "..." }

alias get_name => 'name';

閱讀全文。

commonly used git diff aliases

| 1 Comment | No TrackBacks

I found my self often diff recent 10 changes in my git/svk repo: so Here's a few git diff aliases that I used (in ~/.gitconfig):

[alias]
    up = pull --rebase
    st = status
    ci = commit
    co = checkout
    br = branch
    di = diff
    d1 = diff HEAD^
    d2 = diff HEAD^^
    d3 = diff HEAD^^^
    d4 = diff HEAD^^^^
    d5 = diff HEAD^^^^^
    cia = commit -a
    lol = log --pretty=oneline
    d10 = diff HEAD^^^^^^^^^^
    last = cat-file commit HEAD