Re: Git rescue mission

From: Jakub Narebski <jnareb@gmail.com>
Date: 2007-02-09 13:01:41
<opublikowany i wysłany>

Theodore Tso wrote:

> On Thu, Feb 08, 2007 at 05:10:23PM -0500, Shawn O. Pearce wrote:
>>      git config alias.new "gitk --all --not ORIG_HEAD"
>> 
>> Would give you a new git subcommand:
>> 
>>      git new
>> 
>> which shows all of the new stuff, on all branches, but doesn't show
>> your prior commit history.
> 
> Aliases don't seem to be working for me; I'm using git 1.5.0-rc4.  Am
> I doing something wrong?
> 
> <tytso@candygram> {/usr/projects/linux/linux-2.6}  [master]
> 37% git version
> git version 1.5.0.rc4
> <tytso@candygram> {/usr/projects/linux/linux-2.6}  [master]
> 38% git config alias.new "gitk --all --not ORIG_HEAD"
> <tytso@candygram> {/usr/projects/linux/linux-2.6}  [master]
> 39% git new
> git: 'new' is not a git-command

> <tytso@candygram> {/usr/projects/linux/linux-2.6}  [master]
> 40% tail .git/config 
> 
> [user]
>         name = Theodore Ts'o
>         email = tytso@mit.edu
> 
> [remote "iwlwifi"]
>         url = http://bughost.org/repos/iwlwifi.git/
>         fetch = +refs/heads/*:refs/remotes/iwlwifi/*
> [alias]
>         new = gitk --all --not ORIG_HEAD
>                                       

Actually I think you can only alias git commands. For example
"alias.last  =  cat-file  commit HEAD" makes "git last" call
"git cat-file  commit HEAD".

So "alias.new  = gitk --all --not ORIG_HEAD" would mean that
"git new" invokes "git gitk ..." not "gitk ...". Do you see
the problem.

But error message is a bit strange...
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Feb 09 13:10:04 2007

This archive was generated by hypermail 2.1.8 : 2007-02-09 13:13:43 EST