Re: how to track the history of a line in a file
- From
- Bernt Hansen <bernt@norang.ca>
- Date
- Jan 6, 2009, 16:28 UTC
- Message-ID
- <874p0c1jqx.fsf@gollum.intra.norang.ca>
- In-Reply-To
- <878wpo1k2p.fsf@gollum.intra.norang.ca>
Bernt Hansen <bernt@norang.ca> writes:
Show 19 quoted lines
> Miklos Vajna <vmiklos@frugalware.org> writes: > >> On Tue, Jan 06, 2009 at 10:48:10AM -0500, Bernt Hansen <bernt@norang.ca> wrote: >>> Save the following script in ~/bin/git-rblame.sh, make it executable, >>> and then create a global git alias for it as follows: >>> >>> $ git config --global alias.rblame '!~/bin/git-rblame.sh $*' >> >> Given that you have ~/bin in PATH, just name the script ~/bin/git-rblame >> and you won't even have to define an alias on each machine. ;-) > > Yes but I don't want to use 'git-rblame' as the command since I've > broken my habit of using the dashed versions of commands. 'git rblame' > just feels better to me. > > Now I probably should have named the script something that won't ever > clash with possible future git commands (like my-git-rblame.sh or > something) but since it's in my ~/bin I'll just deal with that if it > ever happens in the future :)
Oops. That actually does do what I want. Thanks for pointing that out Miklos!
(sorry for replying to my own post - next time I'll try it first before I post :)
-Bernt